
/* Supernova Greens - Dashboard Styles */

:root {
    --background: #0b0f0c;
    --surface: #172019;
    --green: #39e75f;
    --text: #f5f7f5;
    --muted: #aab7ad;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
}

h1 {
    color: var(--green);
}

h2 {
    color: var(--text);
}

p {
    color: var(--muted);
}

/* Dashboard Header */

.topbar {
    background-color: #111a13;
    border-bottom: 2px solid var(--green);
    padding: 20px 30px;
}

.brand h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 2px;
}

.brand p {
    margin: 6px 0 0;
    font-size: 13px;
}

/* Main Application Layout */

.app-layout {
    display: flex;
    min-height: calc(100vh - 100px);
}

/* Navigation Sidebar */

.sidebar {
    width: 230px;
    flex-shrink: 0;
    background-color: var(--surface);
    padding: 25px 15px;
    border-right: 1px solid #304535;
}

.sidebar h2 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 20px 12px;
    letter-spacing: 1px;
}

.nav-link {
    display: block;
    padding: 13px 15px;
    margin-bottom: 6px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.nav-link.active {
    background-color: var(--green);
    color: #071008;
    font-weight: bold;
}

/* Main Dashboard Content */

.main-content {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.main-content h2 {
    font-size: 28px;
    margin-top: 0;
}

/* Dashboard Cards */

.dashboard-card {
    background-color: var(--surface);
    border: 1px solid #304535;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    max-width: 600px;
}

.dashboard-card h3 {
    color: var(--green);
    margin-top: 0;
}

/* Smaller Screens */

@media (max-width: 700px) {
    .topbar {
        padding: 18px;
    }

    .brand h1 {
        font-size: 20px;
    }

    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #304535;
    }

    .main-content {
        padding: 20px;
    }
}

/* Production Target List */

.production-list {
    margin-top: 20px;
}

.production-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 12px;
    border-bottom: 1px solid #304535;
}

.production-item:last-child {
    border-bottom: none;
}

.production-item span {
    color: var(--text);
    font-size: 15px;
}

.production-item strong {
    color: var(--green);
    font-size: 16px;
    white-space: nowrap;
}

/* Total Production Target */

.production-total {
    background-color: #223b29;
    border: 1px solid #396b43;
    border-radius: 8px;
    margin-top: 15px;
    padding: 18px 15px;
}

.production-total span {
    font-weight: bold;
    color: var(--text);
}

.production-total strong {
    font-size: 22px;
    color: var(--green);
}

/* Production Batch Cards */

.batch-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.batch-card {
    background-color: #111a13;
    border: 1px solid #304535;
    border-radius: 10px;
    padding: 16px;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.batch-header h4 {
    color: var(--green);
    margin: 0;
    font-size: 18px;
}

.batch-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.batch-details p {
    margin: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.batch-details strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-top: 4px;
}

.batch-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.batch-status.seeded {
    background-color: #204d2a;
    color: #75f28e;
}

.batch-status.planned {
    background-color: #4b3d1d;
    color: #ffd479;
}

@media (max-width: 400px) {
    .batch-details {
        grid-template-columns: 1fr;
    }
}

/* Today's production tasks */
.production-tasks {
    margin-top: 12px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-left: 3px solid #22c55e;
    border-radius: 8px;
}

.production-tasks p {
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.production-tasks strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-top: 5px;
}

/* Production task completion buttons */
.complete-task-btn {
    display: block;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: #22c55e;
    color: #07130b;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.complete-task-btn:hover:not(:disabled) {
    background-color: #4ade80;
}

.complete-task-btn:disabled {
    background-color: #315640;
    color: #a3b9aa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Supernova Greens Employee Login */

.login-page {
    background-color: #080d09;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background-color: #151e17;
    border: 1px solid #305a35;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
    color: #65e572;
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
}

.login-card h2 {
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

.login-card label {
    display: block;
    color: #d6e8d8;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-card input {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: #0b120d;
    color: #ffffff;
    border: 1px solid #45664a;
    border-radius: 8px;
    font-size: 16px;
}

.login-card input:focus {
    outline: 2px solid #65e572;
    outline-offset: 1px;
}

.login-button {
    width: 100%;
    padding: 13px;
    background-color: #46b957;
    color: #071008;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background-color: #65e572;
}

/* Employee logout button */
.logout-form {
    display: flex;
    justify-content: flex-end;
    margin: 15px 20px;
}

.logout-button {
    background-color: #111111;
    color: #39ff14;
    border: 1px solid #39ff14;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background-color: #39ff14;
    color: #111111;
}
