@charset "utf-8";

/* ========================================
   Global
======================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
    background: #262626;
    color: #ffffff;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.logo {
    margin-bottom: 38px;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #ffffff;
}

.logo span {
    font-weight: 400;
}

.login-panel {
    padding: 38px;
    background: #ffffff;
    border-radius: 18px;
    color: #262626;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.08);
}

.login-panel h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.login-panel .intro {
    margin: 0 0 30px;
    color: #666666;
    font-size: 15px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #ffffff;
    color: #262626;
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #262626;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.remember-row {
    display: flex;
    align-items: center;
    margin: 4px 0 24px;
}

.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    accent-color: #262626;
    cursor: pointer;
}

.remember-row label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.login-button {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid #262626;
    border-radius: 10px;
    background: #262626;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.login-button:hover {
    background: #ffffff;
    color: #262626;
}

.login-button:active {
    transform: scale(0.99);
}

@media (max-width: 520px) {
    body {
        align-items: flex-start;
        padding: 50px 18px 24px;
    }

    .logo {
        margin-bottom: 28px;
        font-size: 36px;
    }

    .login-panel {
        padding: 30px 22px;
        border-radius: 15px;
    }

    .login-panel h1 {
        font-size: 25px;
    }
}

body {
    background: #ffffff;
    color: #111111;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-layout {
    display: flex;
    min-height: 100vh;
}


/* ========================================
   Sidebar
======================================== */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    padding: 28px 20px;
    background: #262626;
    color: #ffffff;
    z-index: 1000;
}

.logo {
    margin-bottom: 42px;
    padding: 0 10px;
    font-size: 29px;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: calc(100vh - 100px);
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 9px;
    color: #d7d7d7;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #ffffff;
    color: #262626;
}

.sidebar-overlay {
    display: none;
}


/* ========================================
   Main Content
======================================== */

.main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 38px 42px 60px;
}

.top-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.welcome h1,
.page-heading h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.welcome p,
.page-heading p {
    margin: 0;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.5;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 9px;
    background: #ffffff;
    color: #262626;
    font-size: 24px;
    cursor: pointer;
}


/* ========================================
   Search
======================================== */

.search-section {
    margin-bottom: 36px;
}

.search-form {
    position: relative;
    width: 100%;
    max-width: 720px;
}

.search-input {
    width: 100%;
    height: 56px;
    padding: 0 125px 0 18px;
    border: 1px solid #d6d6d6;
    border-radius: 11px;
    background: #ffffff;
    color: #262626;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #262626;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.search-button {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid #262626;
    border-radius: 8px;
    background: #262626;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-button:hover {
    background: #ffffff;
    color: #262626;
}


/* ========================================
   Rewards Listing
======================================== */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.section-heading p {
    margin: 0;
    color: #737373;
    font-size: 14px;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 26px;
}

.reward-card {
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.reward-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eeeeee;
}

.reward-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #262626;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.reward-details {
    padding: 18px;
}

.reward-details h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.reward-details p {
    min-height: 42px;
    margin: 0 0 18px;
    color: #676767;
    font-size: 14px;
    line-height: 1.5;
}

.reward-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.reward-points {
    font-size: 14px;
    font-weight: 700;
}

.view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #262626;
    border-radius: 7px;
    background: #262626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.view-button:hover {
    background: #ffffff;
    color: #262626;
}


/* ========================================
   Reward Form
======================================== */

.reward-form {
    width: 100%;
    max-width: 1050px;
}

.form-section {
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    background: #ffffff;
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid #ededed;
}

.section-header h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.section-header p {
    margin: 0;
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
}

.form-group {
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.required {
    color: #777777;
}

.form-control {
    min-height: 50px;
    height: auto;
    padding: 12px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    color: #111111;
    font-size: 15px;
}

textarea.form-control {
    min-height: 125px;
    resize: vertical;
    line-height: 1.5;
}

select.form-control {
    cursor: pointer;
}

.field-help {
    margin: 7px 0 0;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}


/* ========================================
   File Uploads
======================================== */

.file-input {
    width: 100%;
    min-height: 50px;
    padding: 8px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.file-input::file-selector-button {
    margin-right: 12px;
    padding: 10px 15px;
    border: 0;
    border-radius: 7px;
    background: #262626;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.image-preview {
    display: none;
    width: 160px;
    height: 160px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #f4f4f4;
}

.image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   Claim Fields
======================================== */

.claim-panel {
    display: none;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #dddddd;
    border-radius: 11px;
    background: #fafafa;
}

.claim-panel.active {
    display: block;
}

.claim-panel h3 {
    margin: 0 0 18px;
    font-size: 17px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.checkbox-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #262626;
}

.checkbox-option span {
    font-size: 14px;
}


/* ========================================
   Buttons
======================================== */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 6px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid #262626;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.button-primary {
    background: #262626;
    color: #ffffff;
}

.button-primary:hover {
    background: #ffffff;
    color: #262626;
}

.button-secondary {
    background: #ffffff;
    color: #262626;
}

.button-secondary:hover {
    background: #262626;
    color: #ffffff;
}


/* ========================================
   Responsive
======================================== */

@media (max-width: 1100px) {
    .reward-grid {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }
}

@media (max-width: 900px) {
    .main-content {
        padding: 32px 28px 50px;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 270px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        display: none;
        background: rgba(0, 0, 0, 0.45);
        z-index: 900;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 24px 18px 40px;
    }

    .mobile-menu-button {
        display: block;
        flex-shrink: 0;
    }

    .top-header {
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .welcome h1,
    .page-heading h1 {
        font-size: 27px;
    }

    .reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .form-section {
        padding: 22px 18px;
    }

    .form-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .reward-grid {
        grid-template-columns: 1fr;
    }

    .search-input {
        height: 54px;
        padding-right: 105px;
    }

    .search-button {
        padding: 0 18px;
    }

    .reward-card {
        max-width: 100%;
    }
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-site-filter {
    min-width: 180px;
    padding: 12px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background-color: #fff;
    font: inherit;
}

.search-input {
    flex: 1;
    min-width: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-site-filter,
    .search-input,
    .search-button {
        width: 100%;
    }
}

.section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 24px;
        }

        .section-header h2 {
            margin: 0 0 6px;
        }

        .section-header p {
            margin: 0;
            color: #667085;
        }

        .add-site-button,
        .save-button {
            border: 0;
            border-radius: 8px;
            padding: 11px 18px;
            background: #2563eb;
            color: #ffffff;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
        }

        .add-site-button:hover,
        .save-button:hover {
            background: #1d4ed8;
        }

        .table-container {
            overflow-x: auto;
            background: #ffffff;
            border: 1px solid #e4e7ec;
            border-radius: 12px;
        }

        .sites-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 760px;
        }

        .sites-table th,
        .sites-table td {
            padding: 16px 18px;
            text-align: left;
            border-bottom: 1px solid #e4e7ec;
        }

        .sites-table th {
            background: #f9fafb;
            color: #475467;
            font-size: 14px;
            font-weight: 600;
        }

        .sites-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .sites-table tbody tr:hover {
            background: #f9fafb;
        }

        .site-name {
            color: #101828;
            font-weight: 600;
        }

        .site-url {
            color: #475467;
            text-decoration: none;
        }

        .site-url:hover {
            color: #2563eb;
            text-decoration: underline;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: 13px;
            font-weight: 600;
        }

        .status-active {
            background: #dcfce7;
            color: #166534;
        }

        .status-inactive {
            background: #f2f4f7;
            color: #475467;
        }

        .edit-button {
            border: 1px solid #d0d5dd;
            border-radius: 7px;
            padding: 7px 13px;
            background: #ffffff;
            color: #344054;
            font: inherit;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }

        .edit-button:hover {
            background: #f9fafb;
            border-color: #98a2b3;
        }

        .site-dialog {
            width: min(520px, calc(100% - 32px));
            padding: 0;
            border: 0;
            border-radius: 14px;
            box-shadow: 0 24px 48px rgba(16, 24, 40, 0.2);
        }

        .site-dialog::backdrop {
            background: rgba(16, 24, 40, 0.55);
        }

        .dialog-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 20px;
            padding: 22px 24px;
            border-bottom: 1px solid #e4e7ec;
        }

        .dialog-header h2 {
            margin: 0 0 5px;
            font-size: 20px;
        }

        .dialog-header p {
            margin: 0;
            color: #667085;
            font-size: 14px;
        }

        .dialog-close-button {
            border: 0;
            background: transparent;
            color: #667085;
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
        }

        .site-form {
            padding: 24px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 7px;
            color: #344054;
            font-size: 14px;
            font-weight: 600;
        }

        .form-group input,
        .form-group select {
            /*width: 100%;*/
            box-sizing: border-box;
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            padding: 11px 12px;
            background: #ffffff;
            color: #101828;
            font: inherit;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #2563eb;
            outline: 3px solid rgba(37, 99, 235, 0.12);
        }

        .dialog-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 26px;
        }

        .cancel-button {
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            padding: 10px 17px;
            background: #ffffff;
            color: #344054;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
        }

        .cancel-button:hover {
            background: #f9fafb;
        }

        .empty-message {
            padding: 32px;
            text-align: center;
            color: #667085;
        }

        @media (max-width: 760px) {
            .section-header {
                align-items: stretch;
                flex-direction: column;
            }

            .add-site-button {
                width: 100%;
            }
        }

.report-card {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.report-row {
    display: flex;
    align-items: end;
    gap: 12px;
}

.report-name {
    min-width: 220px;
    margin-right: auto;
}

.report-name strong {
    display: block;
    font-size: 14px;
}

.report-name span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-field label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.report-field input,
.report-field select {
    height: 36px;
    padding: 6px 9px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
}

.report-site select {
    min-width: 170px;
}

.report-button {
    height: 36px;
    padding: 0 16px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .report-row {
        flex-wrap: wrap;
        align-items: end;
    }

    .report-name {
        width: 100%;
        min-width: 100%;
        margin-bottom: 4px;
    }
}