/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions everywhere */
* {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ============================================================
   LINKS
   ============================================================ */

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        color: var(--primary-hover);
    }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    border-radius: var(--radius);
    padding: 10px 18px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
}

    .btn-primary:hover {
        background: var(--primary-hover);
    }

.btn-outline-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

    .btn-outline-secondary:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--surface);
    }

/* Remove ugly focus outlines */
button:focus,
.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================
   FORMS
   ============================================================ */

input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(74,108,247,0.15);
    }

/* Labels */
label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* ============================================================
   TABLES
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 14px;
    text-align: left;
}

th {
    background: var(--background);
    color: var(--text-muted);
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--background);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow);
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* ============================================================
   TOASTS
   ============================================================ */

.toast {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-5 {
    margin-top: 24px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 24px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   INFO CARDS
   ============================================================ */

.info-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.info-card-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-strong);
}

.info-card-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 1200px;
}
