/* 
 * Premium LMS Styling - MTs Manaf
 * Design Theme: Modern Glassmorphism & Soft Gradients
 */

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

:root {
    --primary: #1e3c72;
    --primary-grad: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --accent: #ff6b6b;
    --accent-grad: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --bg-light: #f4f7fc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-radius: 16px;
    --shadow-soft: 0 10px 30px rgba(30, 60, 114, 0.08);
    --shadow-hover: 0 20px 40px rgba(30, 60, 114, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism background for auth */
.auth-bg {
    background: radial-gradient(circle at 10% 20%, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.05) 90%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><g fill="%232a5298" fill-opacity="0.03"><path fill-rule="evenodd" d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" /></g></svg>');
    background-color: var(--bg-light);
}

/* Elegant login card */
.lms-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.lms-card:hover {
    box-shadow: var(--shadow-hover);
}

.lms-header {
    background: var(--primary-grad);
    padding: 40px 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lms-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.lms-header i {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lms-header h4 {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

/* Premium Navigation Tabs */
.nav-tabs-custom {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
    margin: 20px 30px 0;
    border-radius: 12px;
}

.nav-tabs-custom button {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-tabs-custom button.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(30, 60, 114, 0.1);
}

/* Form Controls styling */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.input-group-text {
    background-color: #fff;
    border-right: none;
    color: var(--text-muted);
    border-radius: 10px 0 0 10px;
    border-color: #e2e8f0;
}

.form-control {
    border-left: none;
    border-color: #e2e8f0;
    border-radius: 0 10px 10px 0;
    padding: 11px 15px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: #cbd5e0;
    box-shadow: none;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--primary);
    background-color: #fff;
}

/* Buttons */
.btn-lms {
    background: var(--primary-grad);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.2);
    transition: var(--transition);
}

.btn-lms:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

.btn-lms:active {
    transform: translateY(1px);
}

/* Navbars & Dashboards */
.navbar-custom {
    background: var(--primary-grad) !important;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.4rem;
}

/* Stat Cards */
.card-stat {
    border: none;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Table Style */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table thead th {
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 12px 20px;
}

.table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #fafbfc;
    transform: scale(1.005);
}

.table tbody td {
    padding: 16px 20px;
    border: none;
}

.table tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 8px;
}

.bg-primary {
    background-color: rgba(30, 60, 114, 0.1) !important;
    color: var(--primary) !important;
}

.bg-success {
    background-color: rgba(72, 187, 120, 0.1) !important;
    color: #38a169 !important;
}

.bg-warning {
    background-color: rgba(236, 151, 31, 0.1) !important;
    color: #d87a00 !important;
}

.bg-danger {
    background-color: rgba(229, 62, 62, 0.1) !important;
    color: #e53e3e !important;
}

/* Form block */
.card-form {
    border: none;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
