/* ===== Sidebar ===== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Sidebar */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #2f343a;
    color: white;
}

/* Logo */

.logo {
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    background: #24282d;
    text-align: center;
}

/* Menu */

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu li a {
    display: block;
    padding: 14px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
}

/* Hover */

.menu li a:hover {
    background: #3c4147;
    color: white;
}

/* Active */

.menu li.active a {
    background: #3c4147;
    color: white;
    border-radius: 6px;
    margin: 8px;
}

/* ===== Main Content ===== */

.main-content {
    margin-left: 240px;
    padding: 30px;
}


/* ===== Stats Cards ===== */

.stats-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Card */

.stat-card {
    flex: 1;
    min-width: 260px;
    padding: 25px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    position: relative;
}

/* Number */

.stat-card h2 {
    font-size: 32px;
    margin: 0;
}

/* Label */

.stat-card p {
    margin: 5px 0 15px;
    font-size: 16px;
}

/* Progress bar */

.progress {
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

/* Colors */

.blue {
    background: linear-gradient(135deg, #4b2bd6, #2d6cdf);
}

.green {
    background: linear-gradient(135deg, #1ea97c, #34d399);
}

.orange {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* ===== Topbar ===== */

.topbar {
    position: fixed;
    left: 240px;     /* same as sidebar */
    right: 0;
    top: 0;
    height: 65px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Search */

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 260px;
}

.search-box button {
    padding: 8px 14px;
    margin-left: 8px;
    border: 1px solid #198754;
    background: transparent;
    color: #198754;
    border-radius: 6px;
    cursor: pointer;
}

/* Admin menu */

.admin-menu {
    position: relative;
}

.admin-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

/* Dropdown */

.dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 160px;
    display: none;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown a:hover {
    background: #f2f2f2;
}

.dropdown hr {
    margin: 5px 0;
}

.logout {
    color: red;
}

.main-content {
    margin-left: 240px;
    padding: 90px 30px 30px;  /* extra top space */
}


/* ===== Table ===== */

.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #2f6ea3;
    color: white;
    padding: 12px;
    text-align: left;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* ===== Profile Card ===== */

.profile-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Header */

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f6fe5;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Inputs */

.profile-card label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.profile-card input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Update button */

.update-btn {
    background: #ffc107;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* ===== Profile Buttons ===== */

.profile-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

/* Close */

.close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

/* Save */

.save-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
}


/* ===== Settings Card ===== */

.settings-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header */

.settings-header {
    background: #f4b400;
    color: #000;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Inputs */

.settings-card label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.settings-card input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Buttons */

.settings-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.change-btn {
    background: #f4b400;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

/* Message */

.msg {
    /* color: red; */
    font-size:18px;
    margin-bottom: 10px;
}

.dashboard-card{
    height: 100%;
border-radius:10px;
border:none;
box-shadow:0 3px 12px rgba(0,0,0,0.1);
transition:0.3s;
background:white;
}

.dashboard-card:hover{
transform:translateY(-5px);
box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

.dash-icon{
    height: 100px;
width:100px;
margin-left:50px;
margin-bottom:10px;
}


.topbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 20px;
background:white;
box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.search-box{
position:relative;
width:350px;
}

.search-box input{
width:100%;
padding:8px 12px;
border:1px solid #ddd;
border-radius:6px;
}

.search-result{
position:absolute;
background:white;
width:100%;
top:40px;
border-radius:6px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
display:none;
z-index:1000;
}

.search-result a{
display:block;
padding:8px 10px;
text-decoration:none;
color:#333;
border-bottom:1px solid #eee;
}

.search-result a:hover{
background:#f5f7fb;
}

.admin-menu{
position:relative;
}

.admin-btn{
background:#4c6ef5;
color:white;
border:none;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
}

.dropdown{
position:absolute;
right:0;
top:40px;
background:white;
width:180px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
border-radius:6px;
display:none;
}

.dropdown a{
display:block;
padding:10px;
text-decoration:none;
color:#333;
}

.dropdown a:hover{
background:#f5f7fb;
}

/* MOBILE */

@media(max-width:768px){

.topbar{
flex-direction:column;
gap:10px;
}

.search-box{
width:100%;
}

}