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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-height: 100vh;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screen.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.screen.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.glass-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-box h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.glass-box p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 25px;
}

.password-field {
    position: relative;
    margin-bottom: 20px;
}

.password-field input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.password-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-field input:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.toggle-password:hover {
    transform: translateY(-50%) scale(1.2);
}

.search-field {
    margin-bottom: 20px;
}

.search-field input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-field input:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.results-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.result-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.result-item h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
}

.result-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.zone-display,
.school-display {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

.dashboard-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.category-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-header h2 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.category-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.data-table td {
    color: rgba(255, 255, 255, 0.9);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    font-size: 1.1rem;
}

.admin-modal {
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.form-group select option {
    background: #667eea;
    color: white;
}

.admin-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.25);
}

.admin-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-content {
    width: 100%;
    max-width: 1200px;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-form h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.admin-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.admin-form input:focus,
.admin-form select:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.admin-form select option {
    background: #667eea;
    color: white;
}

.admin-form button {
    width: auto;
    padding: 12px 30px;
}

.admin-list {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.list-item-info {
    color: white;
}

.list-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.list-item-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    padding: 8px 15px;
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.btn-delete {
    padding: 8px 15px;
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.popup-content p {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.admin-progress-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: none;
    animation: slideInRight 0.3s ease;
}

.admin-progress-indicator.active {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 250px;
}

.progress-text {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.setup-modal,
.recovery-modal {
    max-width: 500px;
}

.setup-warning {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.password-display-group {
    margin-bottom: 20px;
}

.password-display-group label {
    display: block;
    color: white;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.password-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.password-display span {
    flex: 1;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    word-break: break-all;
}

.copy-btn {
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.recovery-link {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recovery-link:hover {
    color: white;
    text-decoration: underline;
}

.new-password-display {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.new-password-display label {
    display: block;
    color: white;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.new-password-display .password-display {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.new-password-display .password-display span {
    color: #10b981;
}

.school-particulars-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.particulars-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
}

.particulars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.particular-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.particular-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.particular-item label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.particular-item p {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .glass-box {
        padding: 30px 20px;
        margin: 10px;
    }

    .splash-content h1 {
        font-size: 1.8rem;
    }

    .particulars-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-header h2,
    .category-header h2,
    .admin-header h2 {
        font-size: 1.5rem;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .admin-tab {
        width: 100%;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .list-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 10px;
    }

    .glass-box {
        padding: 25px 15px;
    }

    .splash-content h1 {
        font-size: 1.5rem;
    }

    .dashboard-card {
        padding: 20px;
    }
}
