@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* ===== Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --heading-color: #2563eb;
    --paragraph-color: #334155;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --light-bg: #f1f5f9;
    --dark-gray: #475569;
    --determinant-color: #3b82f6;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Header & Footer */
    --header-bg: #2563eb;
    --header-text: #ffffff;
    --footer-bg: #1e293b;
    --footer-text: #ffffff;

    /* Button Colors */
    --button-primary-bg: #2563eb;
    --button-primary-text: #ffffff;
    --button-primary-hover: #1d4ed8;
    --button-secondary-bg: #64748b;
    --button-secondary-text: #ffffff;
    --button-secondary-hover: #475569;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-disabled: #cbd5e1;
    --text-muted: #64748b;
    --page-title: #334155;

    /* Background Colors */
    --bg-container: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-disabled: #f1f5f9;
    --bg-stripe: #f8fafc;

    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-modern: #e2e8f0;

    /* Link Colors */
    --link-default: #2563eb;
    --link-hover: #1d4ed8;

    /* Message Colors */
    --msg-info-bg: #dbeafe;
    --msg-info-text: #1e40af;
    --msg-info-border: #93c5fd;
    --msg-warning-bg: #fef3c7;
    --msg-warning-text: #92400e;
    --msg-warning-border: #fde68a;
    --msg-error-bg: #fecaca;
    --msg-error-text: #991b1b;
    --msg-error-border: #fca5a5;
    --msg-success-bg: #d1fae5;
    --msg-success-text: #065f46;
    --msg-success-border: #6ee7b7;

    /* Interactive */
    --interactive-primary-hover: #1d4ed8;
    --focus-ring: rgba(37, 99, 235, 0.25);

    /* Tables */
    --table-hover: rgba(37, 99, 235, 0.05);
    --table-stripe: #f8fafc;
    --table-border: #e2e8f0;
}

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

/* ===== Base Elements ===== */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--paragraph-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: none;
}

h3 {
    font-weight: 900;
    text-transform: none;
    margin-bottom: 1rem;
}

.page-title {
    text-align: center;
    margin-top: 20px;
    color: #565656;
    font-size: 2.1rem;
    padding-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== Header & Navigation ===== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav a, nav .menu-parent {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

nav a:hover, nav .menu-parent:hover {
    background-color: rgba(255,255,255,0.1);
}

nav a.active, nav .menu-parent.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav a.active::after, nav .menu-parent.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

nav a.active:hover, nav .menu-parent.active:hover {
    background-color: rgba(255,255,255,0.25);
}

/* Submenu styles */
.has-children {
    position: relative;
}

.menu-parent .fa-chevron-down {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.has-children:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: block !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
}

.has-children:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    width: 100%;
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-radius: 0;
    width: 100%;
    text-align: left;
}

.submenu a:hover {
    background-color: rgba(255,255,255,0.2);
}

.submenu a.active {
    background-color: rgba(255,255,255,0.3);
}

.submenu a.active::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 5px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== Main Content ===== */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== Common Components ===== */
/* Button styles */
.button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: #d55a00;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Messages */
#messages {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    display: none;
}

.message.info {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Version info */
.version-info {
    text-align: center;
    margin: 10px 0 20px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-size: 0.9em;
    color: #666;
}

.version-info a {
    color: #336699;
    text-decoration: none;
}

.version-info a:hover {
    text-decoration: underline;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    margin-top: 1rem;
    background-color: white;
}

th {
    background-color: white;
    color: #000;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 900;
    position: sticky;
    top: 0;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-right: 1px solid #ccc;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Roboto', sans-serif;
    border-right: 1px solid #ccc;
}

td:last-child, th:last-child {
    border-right: none;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(240, 115, 40, 0.05);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9000;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-color);
        margin: 0;
        padding-top: 70px;
        transition: right 0.3s ease;
        z-index: 90;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        display: block;
        overflow-y: auto;
    }
    
    nav.open {
        right: 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: block;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav a, nav .menu-parent {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    nav a.active::after, nav .menu-parent.active::after {
        display: none;
    }
    
    /* Mobile submenu styles */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 !important;
        margin: 0 !important;
        display: block;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .submenu li {
        border-bottom: none;
    }
    
    .submenu a {
        padding-left: 40px;
        font-size: 0.95em;
    }
    
    .menu-parent.submenu-open .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Important: Override hover behavior for mobile */
    .has-children:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
    }
    
    /* Show submenu when parent has submenu-open class */
    .has-children .menu-parent.submenu-open + .submenu {
        max-height: 500px !important;
    }
    
    /* Hamburger animation when menu is open */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Add overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 80;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        padding: 0 40px;
    }
    
    header h3 {
        font-size: 1rem;
    }
    
    .hamburger {
        top: 15px;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.5rem;
        padding: 0 40px;
    }
    
    header h3 {
        font-size: 1rem;
    }
    
    .hamburger {
        top: 15px;
    }
} 