/* ====== Elite AI Academy – Universal Responsive Stylesheet ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --text: #2d3436;
    --primary: #0066ff;
    --primary-dark: #0044cc;
    --primary-light: #e6f0ff;
    --card-bg: #ffffff;
    --card-border: #e0e7ff;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.1);
    --border: #dee2e6;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --info: #1e90ff;
}

body.dark {
    --bg: #1a1a2e;
    --text: #e0e0e0;
    --primary: #4d8cff;
    --primary-dark: #3a6fd8;
    --primary-light: #16213e;
    --card-bg: #16213e;
    --card-border: #2a2a4a;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.5);
    --border: #2d3748;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ====== Navbar ====== */
.navbar {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    padding: 10px 20px;
    min-height: 65px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,102,255,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 5px 0;
}
.nav-brand:hover {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}
.logo {
    height: 42px;
    margin-right: 12px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 1.2rem;
    padding: 8px 0;
}
.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.dark-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    margin-left: 0.5rem;
}
.dark-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* ====== Hero ====== */
.hero {
    background: linear-gradient(135deg, #0a1f44 0%, #0066ff 100%);
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== Container & Cards ====== */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0,102,255,0.3);
    gap: 0.5rem;
    white-space: nowrap;
    min-height: 44px;
}
.btn:hover {
    background: linear-gradient(135deg, #0044cc, #003399);
    box-shadow: 0 6px 20px rgba(0,102,255,0.4);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
}
.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff3040);
    box-shadow: 0 4px 14px rgba(255,71,87,0.3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #e02040, #d01030);
}

/* ====== Forms ====== */
.form-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1.3rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}
input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.2);
}
input[type="file"] {
    padding: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* ====== Tables ====== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.table thead th {
    background: var(--primary);
    color: white;
    padding: 0.8rem 0.8rem;
    font-weight: 500;
    text-align: left;
    font-size: 0.9rem;
}
.table tbody td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    font-size: 0.9rem;
}
.table tbody tr:hover td {
    background: var(--primary-light);
}

/* ====== Alerts & Badges ====== */
.alert {
    padding: 1rem 1.4rem;
    margin: 1rem 0;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.alert-success { background: #2ed573; }
.alert-danger { background: #ff4757; }
.alert-warning { background: #ffa502; }
.alert-info { background: #1e90ff; }

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge.paid { background: #2ed573; color: white; }
.badge.pending { background: #ffa502; color: white; }

/* ====== Quote ====== */
.quote {
    text-align: center;
    margin: 2rem 0;
    padding: 1.8rem;
    background: var(--primary-light);
    border-radius: 16px;
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
}

/* ====== Search & Pagination ====== */
.search-bar {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.search-bar input, .search-bar select {
    flex: 1 1 180px;
    min-width: 150px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ====== Profile Picture ====== */
.profile-pic img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

/* ====== Footer ====== */
footer {
    background: #0a1f44;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

/* ====== Utility ====== */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }

/* ========== RESPONSIVE – Tablets (≤768px) ========== */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .navbar { justify-content: center; }
    .nav-brand { width: 100%; justify-content: center; margin-bottom: 5px; }
    .nav-links { width: 100%; justify-content: center; gap: 0.8rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .container { padding: 0 1rem; }
    .card { padding: 1.4rem; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .form-card { padding: 1.4rem; }
}

/* ========== RESPONSIVE – Mobile Phones (≤480px) ========== */
@media (max-width: 480px) {
    body { font-size: 16px; }
    .navbar { flex-direction: column; align-items: stretch; padding: 10px; }
    .nav-brand { font-size: 1.3rem; }
    .logo { height: 38px; }
    .nav-links { gap: 0.6rem; }
    .nav-links a { font-size: 0.9rem; padding: 0.3rem 0.2rem; }
    .hero { padding: 2.5rem 1rem; }
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 0.8rem; }
    .hero-buttons .btn { width: 100%; }
    .btn { width: 100%; padding: 0.75rem 1.5rem; font-size: 1rem; }
    .btn-sm { width: auto; padding: 0.5rem 1rem; font-size: 0.9rem; }
    .card { padding: 1.2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.2rem; }
    input, select, textarea { font-size: 1rem; padding: 0.9rem 1rem; }
    .table { min-width: 480px; }
    .search-bar { flex-direction: column; gap: 0.5rem; }
    .search-bar input, .search-bar select { width: 100%; flex: unset; }
    .alert { font-size: 0.9rem; }
    footer { font-size: 0.85rem; padding: 1.5rem; }
}