/* ------------------------------
   GLOBAL RESET & BASE SETTINGS
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Poppins", sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
}

/* Containers */
.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

/* ---------------------------------------------------
   HEADER STYLE — UNIVERSAL AND SAFE FOR ALL PAGES
--------------------------------------------------- *
.site-header {
    width: 100%;
    background: rgba(150,150,150,0.85);  
    backdrop-filter: blur(4px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

/* ------------------------------
      NAVIGATION MENU  
-------------------------------*
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: 0.3s ease;
}

.main-nav ul li a:hover {
    color: #000;
    opacity: 0.7;
}

/* ------------------------------
      MOBILE MENU TOGGLE
-------------------------------*
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 5px;
    transition: 0.3s;
}

/* ------------------------------
      RESPONSIVE NAVIGATION
-------------------------------*
@media (max-width: 768px) {

    .main-nav {
        position: absolute;
        top: 68px;
        right: 0;
        width: 60%;
        background: rgba(150,150,150,0.95);
        backdrop-filter: blur(5px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        display: none;
        flex-direction: column;
        padding: 15px;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul li a {
        padding: 10px 0;
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
}

/* -------------------------------------------
   TABLE STYLES — SAFE DEFAULTS FOR ALL PAGES
--------------------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table.data-table th,
table.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

table.data-table th {
    background: #eaeaea;
    font-weight: 600;
}

tr:hover {
    background: #f8f8f8;
}

/* -----------------------------------
   BUTTONS — UNIVERSAL SAFE STYLING
------------------------------------*/
.btn, button {
    background: #4a76a8;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
}

.btn:hover, button:hover {
    background: #3e5c85;
}

/* -----------------------------------
   UTILITY CLASSES
------------------------------------*/
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* -----------------------------------
    MODAL (safe, non-intrusive)
------------------------------------*/
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 550px;
    border-radius: 10px;
    position: relative;
}

.modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}
