/* ElimuFlow Main Stylesheet */

:root {
    --primary-color: #2E7D32;
    --secondary-color: #FFFFFF;
    --accent-color: #424242;
    --sidebar-bg: #1B5E20;
    --topbar-bg: #2E7D32;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    font-size: 14px;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--topbar-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-name {
    font-size: 18px;
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 250px;
    background: var(--sidebar-bg);
    color: white;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 999;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-menu a i {
    width: 25px;
    font-size: 18px;
}

.sidebar-menu a span {
    margin-left: 10px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s;
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 20px;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 60px;
    opacity: 0.3;
}

.stat-card .stat-content {
    position: relative;
    z-index: 1;
}

.stat-card .stat-content h3 {
    font-size: 32px;
    margin: 0;
    font-weight: bold;
}

.stat-card .stat-content p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.stat-card .stat-link {
    display: block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-size: 13px;
}

.stat-card .stat-link:hover {
    color: rgba(255,255,255,0.8);
}

.stat-card.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.bg-success {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
}

.stat-card.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #1B5E20;
    border-color: #1B5E20;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control {
    border-radius: 5px;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-dismissible .close {
    padding: 0.5rem 1rem;
}

/* Setup Cards */
.setup-card {
    transition: all 0.3s;
    border: 2px solid transparent;
}

.setup-card.completed {
    border-color: #4CAF50;
}

.setup-card.pending {
    border-color: #FF9800;
}

.setup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.setup-icon {
    text-align: center;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.setup-status {
    text-align: center;
    margin-top: 10px;
}

/* Footer */
.main-footer {
    background: white;
    padding: 20px;
    margin-left: 250px;
    border-top: 1px solid #e0e0e0;
}

.sidebar.collapsed + .main-content + .main-footer {
    margin-left: 70px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-footer {
        margin-left: 0;
    }
}

/* Utilities */
.text-muted {
    color: #6c757d !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}