@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #c8c4d0;
    background: #131926;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* ===== Typography ===== */
h1 {
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    color: #4DC3FA;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.yellow { color: #FFD84D; }
.green  { color: #4ADE80; }
.red    { color: #F87171; }

p {
    margin-bottom: 0.75rem;
}

/* ===== Card (form container) ===== */
.card {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 2rem;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.center-content {
    text-align: center;
}

/* ===== Form Layout ===== */
.form-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-row label {
    flex: 0 0 200px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0f172a;
    color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #4DC3FA;
    box-shadow: 0 0 0 3px rgba(77, 195, 250, 0.15);
}

/* ===== Form Actions (button row) ===== */
.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: #fff;
    background: #2563eb;
}

.btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d9bf0);
}

.btn-secondary {
    background: #4a5568;
}

.btn-secondary:hover {
    background: #5a6a80;
    filter: none;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    filter: none;
}

.btn-yellow {
    background: #F0C830;
    color: #1a1a1a;
}

.btn-yellow:hover {
    background: #e0b820;
    filter: none;
}

.btn-red {
    background: #dc2626;
}

.btn-red:hover {
    background: #b91c1c;
    filter: none;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Data Table ===== */
.table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e2a3a;
    table-layout: fixed;
}

.data-table thead th {
    background: #162032;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 2px solid #2a3a50;
    position: sticky;
    top: 0;
}

.data-table tbody td {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    word-break: break-word;
    overflow-wrap: break-word;
}

.data-table tbody tr {
    transition: background 0.15s;
}

.data-table tbody tr:nth-child(odd) {
    background: #1e2a3a;
}

.data-table tbody tr:nth-child(even) {
    background: #1a2535;
}

.data-table tbody tr:hover {
    background: #253448;
}

/* ===== Toast Notifications ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .card {
        padding: 1.25rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .form-row label {
        flex: none;
        font-size: 0.85rem;
    }

    .form-input {
        width: 100%;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
                                                                                                                               