/* Admin Panel Layout */
.admin-body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f2f5;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #003366;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    background: white;
    color: #003366;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.logout {
    color: #ff6b6b;
}

/* Main Content */
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}

.admin-topbar {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar h2 {
    margin: 0;
    color: #003366;
    font-size: 24px;
}

.admin-content {
    padding: 30px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid;
}

.stat-card.blue { border-color: #003366; }
.stat-card.green { border-color: #28a745; }
.stat-card.orange { border-color: #FF6600; }
.stat-card.purple { border-color: #6f42c1; }

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: #333;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.stat-card i {
    font-size: 24px;
    float: right;
    opacity: 0.3;
}

/* Forms */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #003366;
    border-bottom: 2px solid #E8F0FE;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,51,102,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background: #003366;
    color: white;
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* Marks Table Specific */
.marks-table input[type=number] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.marks-table .max-marks {
    color: #999;
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border: none;
}

.btn-primary { background: #003366; color: white; }
.btn-primary:hover { background: #004080; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-warning { background: #FF6600; color: white; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
    }
    .sidebar-header span,
    .sidebar-link span {
        display: none;
    }
    .admin-main {
        margin-left: 60px;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        flex-direction: column;
    }
}
