@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Denim Theme Palette - Light Mode */
    --denim-dark: #1560bd;
    /* Classic Denim Blue */
    --denim-medium: #4a90e2;
    /* Lighter Wash */
    --denim-light: #dbeafe;
    /* Very Light Wash */
    --denim-bg: #f8fafc;
    /* Cotton White */
    --denim-surface: #ffffff;

    --accent-pink: #ff8fa3;
    /* Bubblegum Pink */
    --accent-text: #2c3e50;
    --text-muted: #64748b;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

[data-theme="dark"] {
    /* Denim Theme Palette - Dark Mode */
    --denim-dark: #60a5fa;
    /* Lighter blue for dark mode text */
    --denim-medium: #3b82f6;
    --denim-light: #1e293b;
    /* Dark Slate */
    --denim-bg: #0f172a;
    /* Navy background */
    --denim-surface: #1e293b;

    --accent-pink: #f472b6;
    --accent-text: #f1f5f9;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--denim-bg);
    color: var(--accent-text);
    height: 100vh;
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Bubblegum Sans', cursive;
    letter-spacing: 0.5px;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--denim-surface);
    border-right: 1px solid var(--denim-light);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.brand h1 {
    color: var(--denim-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-align: left;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: var(--denim-light);
    color: var(--denim-dark);
}

.nav-item.active {
    background-color: var(--denim-medium);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-bar h2 {
    font-size: 2rem;
    color: var(--accent-text);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--accent-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Pages */
.page-view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--denim-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--denim-medium);
}

.stat-card.highlight {
    border-left-color: var(--accent-pink);
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-text);
    font-family: 'Bubblegum Sans', cursive;
}

.recent-registrations {
    background: var(--denim-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.student-list {
    margin-top: 1rem;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--denim-light);
}

.student-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--denim-medium);
}

/* Form */
.form-container {
    background: var(--denim-surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    color: var(--text-muted);
}

input,
select,
textarea {
    padding: 0.8rem;
    border: 2px solid var(--denim-light);
    border-radius: 8px;
    background: var(--denim-bg);
    color: var(--accent-text);
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--denim-medium);
}

.photo-upload-label {
    cursor: pointer;
    border: 3px dashed var(--denim-medium);
    border-radius: 12px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--denim-light);
    color: var(--denim-dark);
    overflow: hidden;
    position: relative;
}

.photo-upload-label input {
    display: none;
}

.photo-upload-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hidden {
    display: none;
}

.btn-submit {
    grid-column: 1 / -1;
    background: var(--denim-dark);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--denim-medium);
}

/* Settings */
.settings-card {
    background: var(--denim-surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--denim-medium);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* About */
.about-card {
    background: var(--denim-surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 4px solid var(--accent-pink);
}

.dev-avatar {
    width: 100px;
    height: 100px;
    background: var(--denim-medium);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    border: 4px solid var(--accent-pink);
    font-family: 'Bubblegum Sans', cursive;
}

.school-name {
    color: var(--denim-medium);
    font-weight: 700;
    margin-bottom: 1rem;
}

.dev-bio {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.badge {
    background: var(--denim-light);
    color: var(--denim-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}