/* ==============================
   ROGUEINC ADMIN
   ============================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-color: #082301;
    color: white;
    font-family: Arial, sans-serif;
}


/* ==============================
   MAIN CONTAINER
   ============================== */

.admin-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
}


/* ==============================
   LOGIN
   ============================== */

.admin-login {
    width: 100%;
    max-width: 420px;

    background-color: #050505;

    border: 1px solid #3A9605;

    padding: 40px;

    text-align: center;
}

.admin-login h1 {
    color: #3A9605;

    font-size: 28px;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.admin-login > p {
    color: #888;

    font-size: 12px;

    letter-spacing: 1px;

    margin-bottom: 30px;
}


/* PASSWORD INPUT */

#adminPassword {
    width: 100%;
    height: 50px;

    background-color: #111;

    border: 1px solid #333;

    color: white;

    padding: 0 15px;

    font-size: 14px;

    margin-bottom: 12px;
}

#adminPassword:focus {
    outline: none;

    border-color: #3A9605;
}


/* LOGIN BUTTON */

#adminLoginButton {
    width: 100%;
    height: 50px;

    border: none;

    background-color: #3A9605;

    color: white;

    font-weight: bold;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.2s ease;
}

#adminLoginButton:hover {
    background-color: #153e0f;
}


/* ==============================
   DASHBOARD
   ============================== */

.admin-dashboard {
    width: 100%;
    max-width: 700px;

    background-color: #050505;

    border: 1px solid #3A9605;

    padding: 40px;
}

.admin-dashboard h1 {
    color: #3A9605;

    letter-spacing: 2px;

    margin-bottom: 35px;
}


/* ==============================
   STORE STATUS
   ============================== */

.admin-status {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 20px;

    border-bottom: 1px solid #222;
}

.admin-status span {
    color: #888;

    font-size: 12px;

    letter-spacing: 1px;
}

#currentStoreMode {
    color: #3A9605;

    letter-spacing: 1px;
}


/* ==============================
   STORE CONTROLS
   ============================== */

.store-controls {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 25px;
}

.store-mode-btn {
    min-height: 50px;

    background-color: #111;

    border: 1px solid #333;

    color: white;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.2s ease;
}

.store-mode-btn:hover {
    border-color: #3A9605;

    background-color: #153e0f;
}


/* ==============================
   ADMIN STATS
   ============================== */

.admin-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 35px;

    padding: 20px 0;

    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.admin-stat span {
    color: #888;

    font-size: 12px;

    letter-spacing: 1px;
}




/* ==============================
   MESSAGES
   ============================== */

.admin-message {
    min-height: 18px;

    margin-top: 15px;

    color: #3A9605;

    font-size: 11px;

    letter-spacing: 1px;

    text-align: center;
}


/* ==============================
   LOGOUT
   ============================== */

.logout-btn {
    margin-top: 30px;

    background: transparent;

    border: none;

    color: #777;

    font-size: 11px;

    letter-spacing: 1px;

    cursor: pointer;
}

.logout-btn:hover {
    color: white;
}

.store-mode-btn.active {
    background-color: #3A9605;
    border-color: #3A9605;
    color: white;
}

/* ==============================
   DROP SCHEDULE
   ============================== */

.drop-schedule-panel {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.drop-schedule-panel h2 {
    margin-bottom: 20px;
    color: #3A9605;
    font-size: 16px;
    letter-spacing: 1.5px;
}

.schedule-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.schedule-field label {
    color: #888;
    font-size: 11px;
    letter-spacing: 1px;
}

.schedule-field input {
    height: 48px;
    padding: 0 12px;
    border: 1px solid #333;
    background-color: #111;
    color: white;
}

.schedule-field input:focus {
    outline: none;
    border-color: #3A9605;
}

#saveDropScheduleButton {
    width: 100%;
    height: 50px;
    border: none;
    background-color: #3A9605;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

#saveDropScheduleButton:hover {
    background-color: #153e0f;
}

/* ==============================
   CANCEL DROP SCHEDULE
   ============================== */

#cancelDropScheduleButton {
    width: 100%;
    height: 50px;
    margin-top: 10px;

    border: 1px solid #444;
    background-color: transparent;
    color: #aaa;

    font-weight: bold;
    letter-spacing: 1px;

    cursor: pointer;
}

#cancelDropScheduleButton:hover {
    border-color: #3A9605;
    color: white;
}


/* ==============================
   SCHEDULE STATUS
   ============================== */


.schedule-status-box {
    margin-bottom: 25px;
    padding: 18px;

    background-color: #111;
    border: 1px solid #222;
}

.schedule-status-box span {
    display: block;

    margin-bottom: 8px;

    color: #777;

    font-size: 10px;
    letter-spacing: 1px;
}

#scheduleStatus {
    color: #3A9605;

    font-size: 14px;
    letter-spacing: 1px;
}

#scheduleSummary {
    margin-top: 10px;

    color: #aaa;

    font-size: 12px;
    line-height: 1.6;
}




/* ==============================
   SUBSCRIBER MANAGEMENT
   ============================== */

.subscriber-management {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.subscriber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.subscriber-header > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subscriber-label {
    color: #777;
    font-size: 11px;
    letter-spacing: 1px;
}

#subscriberCount {
    font-size: 24px;
    color: white;
}

#subscriberSearch {
    width: 220px;
    height: 42px;
    padding: 0 12px;

    background-color: #111;
    border: 1px solid #333;

    color: white;
    font-size: 12px;
}

#subscriberSearch:focus {
    outline: none;
    border-color: #3A9605;
}

.subscriber-table-wrap {
    overflow-x: auto;
}

.subscriber-table {
    width: 100%;
    border-collapse: collapse;
}

.subscriber-table th {
    padding: 12px 10px;

    border-bottom: 1px solid #333;

    color: #777;

    font-size: 10px;
    letter-spacing: 1px;

    text-align: left;
}

.subscriber-table td {
    padding: 14px 10px;

    border-bottom: 1px solid #1a1a1a;

    color: #ddd;

    font-size: 12px;
}

.subscriber-table tbody tr:hover {
    background-color: #0d0d0d;
}

@media (max-width: 600px) {

    .subscriber-header {
        flex-direction: column;
        align-items: stretch;
    }

    #subscriberSearch {
        width: 100%;
    }

}

/* ==============================
   REMOVE SUBSCRIBER BUTTON
   ============================== */

.remove-subscriber-btn {
    padding: 7px 12px;

    background: transparent;
    border: 1px solid #444;

    color: #888;

    font-size: 9px;
    letter-spacing: 1px;

    cursor: pointer;
}

.remove-subscriber-btn:hover {
    border-color: #3A9605;
    color: #3A9605;
}

/* ==============================
   EXPORT SUBSCRIBERS BUTTON
   ============================== */

.export-subscribers-btn {
    height: 42px;
    padding: 0 16px;

    background-color: transparent;
    border: 1px solid #3A9605;

    color: #3A9605;

    font-size: 10px;
    letter-spacing: 1px;

    cursor: pointer;
}

.export-subscribers-btn:hover {
    background-color: #3A9605;
    color: white;
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 600px) {

    .admin-container {
        padding: 15px;
    }

    .admin-login,
    .admin-dashboard {
        padding: 25px;
    }

    .store-controls {
        grid-template-columns: 1fr;
    }

}

[hidden] {
    display: none !important;
}