/* ===================================================
   GLOBAL STYLES - Base Application
   Shared color scheme, typography, and utilities
   =================================================== */

:root {
    /* Modern Fintech Theme */
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --secondary-color: #0ea5e9;
    /* Sky 500 */
    --accent-color: #f59e0b;
    /* Amber 500 */
    --success-color: #10b981;
    /* Emerald 500 */
    --danger-color: #ef4444;
    /* Red 500 */
    --warning-color: #f59e0b;
    /* Amber 500 */
    --info-color: #3b82f6;
    /* Blue 500 */
    --text-dark: #1e293b;
    /* Slate 800 */
    --text-light: #475569;
    /* Slate 600 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --bg-lighter: #f1f5f9;
    /* Slate 100 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-lighter);
    color: var(--text-dark);
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.section-title {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* ===================================================
   MAIN CONTENT LAYOUT
   =================================================== */

main {
    padding: 30px 15px;
    min-height: calc(100vh - 200px);
}

.content-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===================================================
   ALERTS & NOTIFICATIONS
   =================================================== */

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: #fee;
    border-left: 4px solid var(--danger-color);
    color: #721c24;
}

.alert-success {
    background: #efe;
    border-left: 4px solid var(--success-color);
    color: #155724;
}

.alert-warning {
    background: #ffeaa7;
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.alert-info {
    background: #e7f3ff;
    border-left: 4px solid var(--info-color);
    color: #004085;
}

/* ===================================================
   BUTTONS
   =================================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 11px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.cta-button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    transform: scale(1.05);
    background: var(--bg-light);
}

/* ===================================================
   TABLES
   =================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--border-color);
    text-align: left;
    padding: 12px;
}

th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

td {
    color: #555;
}

tr:hover {
    background-color: var(--bg-light);
    transition: background-color 0.2s ease;
}

/* ===================================================
   LISTS
   =================================================== */

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================================
   FOOTER
   =================================================== */

footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================================
   SCROLLBAR STYLING
   =================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

@media (max-width: 991px) {
    main {
        padding: 20px 10px;
    }

    .content-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    main {
        padding: 15px 10px;
    }

    .content-section {
        padding: 15px;
        border-left: 3px solid var(--primary-color);
    }
}