body {
    background: #f1f2f7;
    color: #2d353c;
    font-family: 'Open Sans', sans-serif;
}

#page-container {
    min-height: 100vh;
}

#header {
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.header.navbar-default {
    background: #fff;
    border-color: #e6e8ec;
}

.navbar-brand {
    color: #2d353c !important;
    font-weight: 700;
}

.navbar-brand .navbar-logo {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00acac, #2d353c);
    margin-right: 8px;
    vertical-align: middle;
}

.navbar-nav > li > a {
    color: #6d7884;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: #2d353c;
    background: transparent;
}

.sidebar {
    background: #2d353c;
    border-right: 1px solid rgba(255,255,255,.05);
}

.sidebar .nav > li > a {
    color: rgba(255,255,255,.7);
    padding: 12px 20px;
}

.sidebar .nav > li > a:hover,
.sidebar .nav > li > a:focus,
.sidebar .nav > li.active > a {
    background: #1d232a;
    color: #fff;
}

.sidebar .nav .nav-header {
    color: rgba(255,255,255,.45);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 11px;
    padding: 14px 20px 8px;
}

.sidebar .nav-profile {
    padding: 20px 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar .nav-profile .image {
    margin-bottom: 10px;
}

.sidebar .nav-profile .image img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sidebar .nav-profile .info {
    color: #fff;
    font-weight: 600;
}

.sidebar .nav-profile .info small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.6);
}

#content {
    margin-left: 220px;
    padding: 20px 25px 30px;
}

.content .page-header {
    margin: 0 0 25px;
    font-size: 28px;
    font-weight: 600;
    color: #2d353c;
}

.content .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
}

.panel {
    border: 1px solid #e5e9ef;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border-radius: 4px;
    background: #fff;
}

.panel-inverse > .panel-heading {
    background: #2d353c;
    color: white;
    border-bottom: 0;
    padding: 12px 15px;
}

.panel-body {
    padding: 20px;
}

.widget.widget-stats {
    position: relative;
    color: #fff;
    padding: 18px 20px 15px;
    min-height: 120px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.widget.widget-stats .stats-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 34px;
    opacity: .4;
}

.widget.widget-stats .stats-info {
    position: relative;
    z-index: 1;
}

.widget.widget-stats .stats-info h4 {
    font-size: 11px;
    letter-spacing: .08em;
    opacity: .8;
    margin: 0 0 10px;
    color: #fff;
}

.widget.widget-stats .stats-info p {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.widget.widget-stats .stats-link {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.08);
    padding: 8px 15px;
    font-size: 12px;
}

.widget.widget-stats .stats-link a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
}

.bg-green { background: linear-gradient(135deg, #00acac, #0d9488); }
.bg-blue { background: linear-gradient(135deg, #2d6cdf, #254d9b); }
.bg-purple { background: linear-gradient(135deg, #7a5af8, #5d3bd4); }
.bg-red { background: linear-gradient(135deg, #f15757, #d93c3c); }
.bg-orange { background: linear-gradient(135deg, #f0a04b, #d97745); }
.bg-teal { background: linear-gradient(135deg, #36a269, #238b70); }

.dashboard-kpis .widget-stats {
    margin-bottom: 20px;
}

.dashboard-charts,
.dashboard-tables {
    margin-top: 5px;
}

.dashboard-panel {
    margin-bottom: 20px;
}

.dashboard-panel .panel-heading {
    min-height: 44px;
}

.chart-body {
    height: 250px;
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table th,
.dashboard-table td {
    vertical-align: middle;
}

.dashboard-error-text {
    color: #c0392b;
    max-width: 420px;
}

.winner-filters {
    margin-bottom: 20px;
}

.winner-pagination {
    padding-top: 10px;
}

.table thead th {
    background: #f5f6f8;
    color: #2d353c;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e6e8ec;
}

.table td, .table th {
    vertical-align: middle;
}

.btn {
    border-radius: 3px;
    font-weight: 600;
}

.btn-primary {
    background: #00acac;
    border-color: #00acac;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0d8d8d;
    border-color: #0d8d8d;
}

.btn-outline-primary {
    color: #00acac;
    border-color: #00acac;
}

.brand-actions {
    white-space: nowrap;
}

.brand-logo-cell {
    width: 68px;
    text-align: center;
}

.brand-logo,
.brand-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e1e6eb;
    border-radius: 6px;
    background: #f7f9fa;
    color: #00acac;
    font-size: 16px;
    font-weight: 700;
    object-fit: contain;
    vertical-align: middle;
}

.brand-logo {
    padding: 3px;
}

.brand-action-form {
    display: inline-block;
    margin: 0 0 0 4px;
    vertical-align: middle;
}

.contest-action-form {
    display: inline-block;
    margin: 0 0 0 4px;
    vertical-align: middle;
}

.participant-page .participant-stats {
    margin-bottom: 10px;
}

.participant-page .participant-stats .widget-stats {
    margin-bottom: 20px;
}

.participant-panel {
    margin-top: 5px;
}

.participant-panel .panel-title small {
    margin-left: 8px;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    font-weight: 400;
}

.participant-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.participant-action-form {
    display: inline-block;
    margin: 0;
}

.participant-filters {
    margin-bottom: 20px;
}

.participant-filter-buttons {
    margin-top: 0;
}

.participant-table {
    margin-bottom: 10px;
}

.participant-table th,
.participant-table td {
    vertical-align: middle;
}

.participant-username {
    min-width: 130px;
    font-weight: 600;
    color: #2d353c;
}

.participant-comment {
    min-width: 220px;
    max-width: 360px;
    color: #6d7884;
}

.participant-reason {
    min-width: 220px;
    max-width: 300px;
    color: #c0392b;
    font-size: 12px;
}

.participant-pagination {
    padding-top: 10px;
}

.draw-meta strong,
.draw-hashes strong {
    display: block;
    margin-bottom: 5px;
    color: #2d353c;
    font-size: 11px;
    text-transform: uppercase;
}

.draw-hashes code {
    display: block;
    padding: 8px;
    overflow-wrap: anywhere;
    color: #6d7884;
    background: #f5f6f8;
}

.draw-result-list {
    margin: 0;
    padding-left: 24px;
}

.draw-result-list li {
    padding: 8px 0;
    border-bottom: 1px solid #edf0f2;
}

.draw-snapshot-json {
    max-height: 320px;
    overflow: auto;
    color: #4d5965;
    background: #f7f9fa;
    border: 1px solid #e5e9ef;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.brand-actions .btn i {
    margin-right: 3px;
}

.form-horizontal .control-label {
    color: #6d7884;
    font-weight: 600;
}

.form-horizontal .form-group {
    margin-left: -15px;
    margin-right: -15px;
    padding-bottom: 5px;
}

.form-control {
    border-color: #d9dee3;
    box-shadow: none;
}

.form-control:focus {
    border-color: #00acac;
    box-shadow: 0 0 0 2px rgba(0,172,172,.12);
}

.contest-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b96a3;
    font-weight: 600;
    min-height: 42px;
}

.contest-step.active {
    color: #00acac;
}

.contest-step.complete {
    color: #2d353c;
}

.contest-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dfe3e8;
    border-radius: 50%;
    background: #fff;
    color: #8b96a3;
    font-size: 12px;
}

.contest-step.active .contest-step-number,
.contest-step.complete .contest-step-number {
    border-color: #00acac;
    background: #00acac;
    color: #fff;
}

.contest-step-label {
    font-size: 13px;
}

.contest-create {
    max-width: 1080px;
    margin: 0 auto;
}

.contest-create .panel {
    margin-bottom: 24px;
}

.contest-create .panel-heading {
    min-height: 48px;
    padding: 15px 20px;
}

.contest-create .panel-title small {
    margin-left: 8px;
    color: rgba(255,255,255,.6);
    font-size: 11px;
    font-weight: 400;
}

.contest-create .panel-body {
    padding: 28px 30px;
}

.contest-progress .panel-body {
    padding-top: 18px;
    padding-bottom: 18px;
}

.contest-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.contest-form-row {
    margin-left: -10px;
    margin-right: -10px;
}

.contest-wizard-form .form-group {
    min-height: 0;
    margin-bottom: 22px;
}

.contest-wizard-form .control-label {
    display: block;
    width: auto;
    float: none;
    padding: 0;
    margin-bottom: 8px;
    text-align: left;
}

.contest-field {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 22px;
}

.contest-field .control-label {
    display: block;
    margin-bottom: 8px;
    color: #4d5965;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.contest-field .form-control {
    min-height: 40px;
    border-radius: 3px;
}

.contest-field textarea.form-control {
    min-height: 116px;
    resize: vertical;
}

.contest-checkbox-field {
    padding-top: 28px;
}

.contest-checkbox-field .checkbox {
    padding: 12px 14px;
    border: 1px solid #e5e9ef;
    border-radius: 3px;
    background: #fafbfc;
}

.contest-preview {
    margin-top: 4px;
    border-color: #e5e9ef;
    box-shadow: none;
}

.contest-preview .panel-heading {
    min-height: auto;
    padding: 12px 15px;
    background: #f5f6f8;
    color: #2d353c;
}

.contest-preview .panel-body {
    padding: 20px;
}

.contest-preview-image {
    width: 100%;
    max-height: 320px;
    margin-bottom: 18px;
    object-fit: cover;
    border-radius: 3px;
}

.contest-preview p {
    margin-bottom: 8px;
    color: #6d7884;
    overflow-wrap: anywhere;
}

.contest-form-actions {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid #edf0f2;
}

.panel-default > .panel-heading {
    background: #f5f6f8;
    border-color: #e5e9ef;
    color: #2d353c;
}

@media (max-width: 767px) {
    .participant-toolbar {
        float: none;
        display: flex;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .participant-panel .panel-heading {
        padding-bottom: 12px;
    }

    .participant-filter-buttons {
        margin-top: 10px;
    }

    .contest-create .panel-body {
        padding: 20px 16px;
    }

    .contest-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 16px;
    }

    .contest-step {
        min-height: 36px;
    }

    .contest-step-label {
        font-size: 12px;
    }

    .contest-checkbox-field {
        padding-top: 0;
    }

    .contest-form-actions .btn {
        min-width: 112px;
    }

    .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 6px;
    }

    .form-horizontal .form-group {
        margin-bottom: 15px;
    }

    .contest-wizard-form .form-group {
        margin-bottom: 18px;
    }
}

.badge {
    border-radius: 999px;
    padding: .45em .7em;
    font-weight: 600;
}

.login-body {
    background: radial-gradient(circle at top, #2b3e57, #171d26 45%, #0f1217 100%);
}

.login-v2 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-v2 .login-content {
    width: min(100%, 460px);
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.38);
    padding: 32px 30px;
    color: #fff;
}

.login-v2 .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00acac, #1f8ac2);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.login-v2 h1 {
    font-size: 28px;
    margin-bottom: 6px;
    color: #fff;
}

.login-v2 .small-text {
    color: rgba(255,255,255,.65);
    margin-bottom: 24px;
}

.login-v2 .form-label {
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

.login-v2 .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
}

.login-v2 .form-control::placeholder {
    color: rgba(255,255,255,.45);
}

.login-v2 .btn-primary {
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
}

.login-v2 .alert {
    border-radius: 10px;
}

.login.login-with-news-feed .news-caption {
    min-width: 0;
}

.login.login-with-news-feed .news-caption p {
    max-width: 720px;
    line-height: 1.7;
}

.login.login-with-news-feed .login-header .brand {
    font-weight: 700;
    letter-spacing: .01em;
}

.login.login-with-news-feed .login-content .alert {
    margin-bottom: 20px;
}

.login-note {
    color: #707478;
    line-height: 1.6;
}

.login-footer {
    color: #707478;
    font-size: 12px;
}

@media (max-width: 767px) {
    #content {
        margin-left: 0;
        padding: 90px 15px 30px;
    }

    .sidebar {
        display: none;
    }
}
