/* ============================================
 * TRAINING ERP - MAIN STYLESHEET
 * ============================================ */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* ============================================
 * GENERAL STYLES
 * ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 600;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e9ecef;
    border: none;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: #333;
}

.badge-info {
    background: var(--info);
    color: white;
}

/* ============================================
 * CARD STYLES
 * ============================================ */

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 20px;
}

.card-body {
    padding: 20px;
}

/* ============================================
 * TABLE STYLES
 * ============================================ */

.table {
    border-collapse: collapse;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
    font-weight: 600;
    color: #495057;
}

.table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* ============================================
 * FORM STYLES
 * ============================================ */

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* ============================================
 * ALERT STYLES
 * ============================================ */

.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ============================================
 * PROGRESS BAR
 * ============================================ */

.progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* ============================================
 * RESPONSIVE MEDIA QUERIES
 * ============================================ */

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100% !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 5px;
    }
}

/* ============================================
 * UTILITY CLASSES
 * ============================================ */

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: #6c757d; }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-light { background: var(--light); }

.shadow-sm { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); }
.shadow { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }

.rounded-sm { border-radius: 5px; }
.rounded-md { border-radius: 10px; }
.rounded-lg { border-radius: 15px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.ms-1 { margin-left: 5px; }
.ms-2 { margin-left: 10px; }
.ms-3 { margin-left: 15px; }
.ms-4 { margin-left: 20px; }

.me-1 { margin-right: 5px; }
.me-2 { margin-right: 10px; }
.me-3 { margin-right: 15px; }
.me-4 { margin-right: 20px; }

.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 30px; }


body {
 background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
 color:#fff;
}

.card {
 background: rgba(255,255,255,0.1);
 backdrop-filter: blur(10px);
 border-radius: 20px;
 color:#fff;
}

.sidebar {
 background: rgba(0,0,0,0.8);
}

.nav-link:hover {
 background: #007bff;
 border-radius: 10px;
}
#chatbox {
 border-radius: 15px;
 box-shadow: 0 0 20px rgba(0,0,0,0.3);
}