/* ===============================
   GLOBAL RESET
=============================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===============================
   BODY
=============================== */
body{
    font-family:'Segoe UI', Arial, sans-serif;
    background:linear-gradient(135deg, #0b3d91,#062a63);

}

/* ===============================
   CONTAINER
=============================== */
.container{
    width:90%;
    max-width:1200px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 25px rgba(0,0,0,0.15);
}

/* ===============================
   HEADINGS
=============================== */
h2,h3{
    color:#0b3d91;
    margin-bottom:15px;
}

/* ===============================
   FORMS
=============================== */
label{font-weight:600;}

input, select{
    width:100%;
    padding:10px;
    margin:6px 0 15px;
    border:1px solid #ccc;
    border-radius:6px;
}

input:focus{
    border-color:#0b3d91;
    outline:none;
}

/* ===============================
   BUTTONS
=============================== */
button{
    background:#0b3d91;
    color:white;
    padding:10px 18px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

button:hover{background:#072c6c;}

.btn-danger{background:#c0392b;}
.btn-danger:hover{background:#922b21;}

.btn-back{
    background:#555;
    color:white;
    padding:10px 18px;
    border-radius:6px;
}

/* ===============================
   LINKS
=============================== */
a{
    text-decoration:none;
    font-weight:600;
    color:#0b3d91;
}

/* ===============================
   TABLES
=============================== */
table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

table th{
    background:#0b3d91;
    color:white;
    padding:10px;
}

table td{
    padding:10px;
    border-bottom:1px solid #ddd;
}

/* ===============================
   ALERTS
=============================== */
.success{
    background:#d4edda;
    color:#155724;
    padding:12px;
    border-radius:6px;
}

.error{
    background:#f8d7da;
    color:#721c24;
    padding:12px;
    border-radius:6px;
}

/* ===============================
   NAVBAR
=============================== */
.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#0b3d91;
    padding:10px 30px;
    border-radius:8px;
}

/* LEFT */
.nav-left a{
    color:white;
    font-weight:bold;
}

/* CENTER MENU */
.nav-center{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    flex:1;
    white-space:nowrap; /* prevent wrapping */
}

/* MENU ITEMS */
.nav-item{
    position:relative;
}

.nav-item a{
    color:white;
    font-size:16px;
    padding:6px 8px;
}

/* HOVER EFFECT */
.nav-item a:hover{
    border-bottom:2px solid white;
}

/* DROPDOWN */
.nav-dropdown{
    display:none;
    position:absolute;
    top:40px;
    left:0;
    background:white;
    min-width:220px;
    border-radius:5px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    z-index:1000;
}

.nav-dropdown a{
    display:block;
    padding:10px;
    color:black;
}

.nav-dropdown a:hover{
    background:#f1f1f1;
}

/* SHOW DROPDOWN */
.nav-item:hover .nav-dropdown{
    display:block;
}

/* ===============================
   USER (RIGHT SIDE)
=============================== */
.user-menu{
    position:relative;
}

.user-info{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.user-info span{
    color:white;
}

/* PROFILE IMAGE */
.nav-profile{
    width:35px;
    height:35px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid white;
}

/* USER DROPDOWN */
.dropdown{
    display:none;
    position:absolute;
    right:0;
    top:45px;
    background:white;
    border-radius:8px;
    min-width:180px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.dropdown a{
    display:block;
    padding:10px;
    color:black;
}

.dropdown a:hover{
    background:#eee;
}

.dropdown.show{
    display:block;
}

.logout{
    color:#0b3d91;
    font-weight:bold;
}

/* ===============================
   DASHBOARD
=============================== */
.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card{
    background:white;
    padding:20px;
    border-radius:10px;
    text-align:center;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

.card h3{
    color:#0b3d91;
}

/* PROFILE PHOTO */
.dashboard-photo{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #0b3d91;
}

/* ===============================
   FOOTER
=============================== */
.footer{
    margin-top:40px;
    padding:20px;
    background:#0b3d91;
    color:white;
    text-align:center;
    border-radius:8px;
}

/* ===============================
   RESPONSIVE
=============================== */
@media(max-width:780px){

    .navbar{
        flex-direction:column;
        gap:10px;
    }

    .nav-center{
        flex-direction:column;
        gap:10px;
    }

}