@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1A233A;
    color: #E2E8F0;
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.navbar {
    background-color: #252D47;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #4A5568;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: 600;
    color: #E75480;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #252D47;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 24px;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-info p {
    color: #A0AEC0;
    font-size: 0.9em;
    margin: 0;
}

.stat-info span {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
}

.chart-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 992px) {
    .chart-card {
        grid-column: span 1;
    }
}
.chart-title {
    color: #A0AEC0;
    font-weight: 500;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}
.chart-container {
    position: relative;
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin: auto;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.dropbtn {
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.dropbtn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
}

.dropdown-content a {
    color: #2b6cb0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-content a i {
    margin-right: 8px;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary { background-color: #E75480; }
.btn-primary:hover { background-color: #c4466c; }
.btn-success { background-color: #38A169; }
.btn-success:hover { background-color: #2F855A; }
.btn-danger { background-color: #E53E3E; }
.btn-danger:hover { background-color: #C53030; }
.btn-warning { background-color: #D69E2E; color: #1A202C; }
.btn-warning:hover { background-color: #B7791F; }
.btn-info { background-color: #3182CE; }
.btn-info:hover { background-color: #2B6CB0; }
.btn-secondary { background-color: #4A5568; }
.btn-secondary:hover { background-color: #2D3748; }
.btn-block { width: 100%; justify-content: center; }

.table-section {
    background-color: #252D47;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-bar {
    position: relative;
}
.search-bar input {
    background-color: #1A233A;
    border: 1px solid #4A5568;
    color: #E2E8F0;
    padding: 10px 15px 10px 40px;
    border-radius: 8px;
    width: 300px;
    transition: all 0.3s ease;
}
.search-bar input:focus {
    outline: none;
    border-color: #E75480;
    box-shadow: 0 0 0 0.25rem rgba(231, 84, 128, 0.25);
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AEC0;
}

.table-container {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #4A5568;
    vertical-align: middle;
}
.table thead th {
    background-color: #1A233A;
    font-weight: 600;
    color: #A0AEC0;
    font-size: 0.9em;
    text-transform: uppercase;
}
.table tbody tr:hover { background-color: #2d3748; }
.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4A5568;
}
.action-buttons { text-align: center; }
.action-buttons a { margin: 0 4px; }
.text-center { text-align: center; padding: 20px; color: #A0AEC0; }

.login-container, .form-container, .alert {
}

.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-box { background: #252D47; padding: 40px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); width: 100%; max-width: 420px; }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header .fa-graduation-cap { font-size: 3em; color: #E75480; margin-bottom: 10px; }
.login-header h2 { font-size: 2em; margin-bottom: 5px; color: #f7fafc; }
.login-header p { color: #A0AEC0; }
.form-container { background: #252D47; padding: 30px 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { font-size: 1.8em; color: #f7fafc; }
.form-header p { color: #A0AEC0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #A0AEC0; }
.form-group input[type="text"], .form-group input[type="password"], .form-group input[type="file"] { width: 100%; padding: 12px 15px; border: 1px solid #4A5568; border-radius: 8px; background-color: #1A233A; color: #E2E8F0; transition: all 0.3s ease; }
.form-group input:focus { outline: none; border-color: #E75480; box-shadow: 0 0 0 0.25rem rgba(231, 84, 128, 0.25); }
.profile-pic-preview { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #4A5568; margin: 10px auto; }
.form-actions { text-align: right; margin-top: 30px; }
.alert { padding: 15px 20px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.alert-danger { color: #FED7D7; background-color: #C53030; border-color: #E53E3E; }
.alert-success { color: #C6F6D5; background-color: #2F855A; border-color: #38A169; }

@media (max-width: 768px) {
    .navbar .container, .toolbar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .search-bar input { width: 100%; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { margin-bottom: 15px; border: 1px solid #4A5568; border-radius: 8px; overflow: hidden; }
    .table td { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; text-align: right; border-bottom: 1px solid #4A5568; }
    .table td::before { content: attr(data-label); font-weight: bold; text-align: left; margin-right: 20px; color: #f7fafc; }
    .table td:last-child { border-bottom: none; }
    .action-buttons { justify-content: flex-end; }
    .action-buttons .btn { padding: 8px 12px; }
}

.text-center img.rounded-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.text-center img.rounded-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.text-center h3 {
    font-weight: 600;
    color: #2c3e50;
}

.text-center p {
    font-size: 15px;
    color: #7f8c8d;
}
