/* GLOBAL STYLING: styles.css */
body { 
    margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f2f4f7;
    color: #333;
}
.layout { 
    display: flex; 
    min-height: 100vh;
}
.sidebar { 
    width: 220px; 
    background: #1e293b; 
    color: white; 
    padding-top: 10px; 
    position: fixed; 
    height: 100%;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.sidebar a { 
    display: block; 
    padding: 16px 14px; 
    color: white; 
    text-decoration: none; 
    border-bottom: 1px solid #334155; 
    transition: background 0.2s;
}
.sidebar a:hover, .sidebar a.active { 
    background: #0f172a; 
    border-left: 4px solid #2ecc71; /* Highlight active link */
    padding-left: 10px;
}
.sidebar-header {
    padding: 14px; 
    font-size: 20px; 
    font-weight: bold; 
    color: #ffc107; 
    border-bottom: 1px solid #334155;
}
.content { 
    margin-left: 220px; 
    padding: 20px; 
    width: calc(100% - 220px); 
}
.hidden { 
    display: none; 
}
.card { 
    background: white; 
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

/* Forms & Inputs */
input, select, textarea { 
    width: 100%; 
    padding: 10px; 
    margin: 8px 0; 
    border-radius: 5px; 
    border: 1px solid #ced4da; 
    box-sizing: border-box;
    font-size: 14px;
}

/* Buttons */
.btn-primary { 
    background: #007bff; 
    color: white; 
    padding: 12px; 
    border-radius: 5px; 
    cursor: pointer; 
    border: none; 
    width: 100%; 
    margin-top: 10px; 
    transition: background 0.3s;
}
.btn-primary:hover { 
    background: #0056b3; 
}
.btn-success { 
    background: #198754; 
}
.btn-success:hover { 
    background: #146c43;
}
.btn-danger {
    background: #dc3545;
}
.btn-danger:hover {
    background: #bd2130;
}

/* Tables */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px; 
}
table th, table td { 
    padding: 12px; 
    border: 1px solid #e9ecef; 
    text-align: left; 
    font-size: 14px;
}
table thead th { 
    background: #f8f9fa; 
    font-weight: bold; 
    color: #495057;
}
table tbody tr:hover { 
    background: #e9f2fa; 
}

/* Stats/Dashboard */
.stats { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
}
.stat-box {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 450px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}