@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%;
    }
}