/* Login Page Styles */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --text: #334155;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    --shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    --shadow-hover: 0 30px 80px rgba(102, 126, 234, 0.4);
}

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

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

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.circle-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

.circle-5 {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 50%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, 50px) scale(1.2);
        opacity: 0.6;
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 3rem;
}

/* Logo Section */
.logo-section {
    flex: 1;
    max-width: 500px;
    color: white;
    position: relative;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    pointer-events: none;
}

.logo-content i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: bounce 2s infinite, glow 3s ease-in-out infinite;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

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

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
}

.logo-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
}

.logo-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.logo-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Login Section */
.login-section {
    flex: 1;
    max-width: 500px;
}

/* WiFi QR Code Card */
.wifi-qr-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    color: white;
    width: 400px;
    max-width: 90%;
    text-align: center;
    z-index: 1000;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wifi-qr-card.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

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

.wifi-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.wifi-card-header i {
    font-size: 2rem;
}

.wifi-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.wifi-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* WiFi Info Section */
.wifi-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wifi-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.wifi-info-item i {
    font-size: 1.3rem;
    opacity: 0.9;
    min-width: 24px;
}

.wifi-info-item > div {
    flex: 1;
    text-align: left;
}

.wifi-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
}

.wifi-network-name,
.wifi-password {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
    letter-spacing: 0.3px;
}

.wifi-qr-display {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.wifi-qr-display > * {
    width: 250px !important;
    height: 250px !important;
}

.wifi-qr-display canvas {
    display: block !important;
    border-radius: 6px;
}

.wifi-qr-display img {
    display: none !important;
}

/* Only show canvas, hide img element that QRCode.js creates */
.wifi-qr-display canvas:only-child {
    display: block !important;
}

.wifi-instructions {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* WiFi Toggle Button */
.wifi-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    display: none;
    opacity: 0;
    visibility: hidden;
}

.wifi-toggle-btn.show {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.8s ease;
}

.wifi-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.wifi-toggle-btn:active {
    transform: scale(0.95);
}

.wifi-toggle-btn i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* WiFi Close Button */
.wifi-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wifi-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.wifi-close-btn i {
    font-size: 1.2rem;
}

/* WiFi Modal Backdrop (Mobile) */
.wifi-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease;
}

.wifi-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-card {
    background: white;
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: slideInRight 0.8s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.login-header p {
    color: var(--text);
    font-size: 0.85rem;
}

/* User Type Toggle */
.user-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--light);
    padding: 0.4rem;
    border-radius: 0.6rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.toggle-btn:hover {
    background: white;
}

.toggle-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.toggle-btn i {
    font-size: 1rem;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--light);
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn.active {
    color: var(--primary);
}

/* Login Forms */
.login-forms {
    position: relative;
}

.login-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.login-form.active {
    display: block;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group label i {
    color: var(--primary);
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    cursor: pointer;
}

.remember-me input {
    width: auto;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--gradient);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-login:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

/* QR Scanner Styles */
.qr-scanner-container {
    text-align: center;
}

.scanner-info {
    margin-bottom: 1rem;
}

.scanner-info i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.scanner-info h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.scanner-info p {
    color: var(--text);
    font-size: 0.8rem;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1;
}

#qrVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0%, 100% {
        top: 0;
    }
    50% {
        top: 100%;
    }
}

.scanner-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.btn-camera {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--gradient);
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-camera:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
}

.btn-camera.secondary {
    background: var(--danger);
}

.btn-camera.upload {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-camera.upload:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.scan-status {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 40px;
}

.scan-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.scan-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Flip Camera Button */
.flip-camera-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flip-camera-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.flip-camera-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.flip-camera-btn i {
    pointer-events: none;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--primary-dark);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 450px;
    min-width: 350px;
    animation: modalSlideIn 0.5s ease;
}

.modal-content .student-info {
    margin-top: 1.5rem;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-icon i {
    color: white;
}

.modal-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Marquee Notification - Circular Curved Text Around All Library Content */
.marquee-container {
    position: absolute;
    top: -70%;
    left: -20%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    z-index: 5;
    pointer-events: none;
    animation: rotateCircular 20s linear infinite;
}

.marquee-content {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 700;
    color: rgba(232, 113, 16, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 8px;
}

.marquee-content span {
    position: absolute;
    left: 50%;
    top: 0;
    transform-origin: 0 275px;
    display: inline-block;
}

@keyframes rotateCircular {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Website Button */
.website-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.website-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.website-btn i {
    font-size: 16px;
}

/* Admin Contact Modal */
.admin-contact-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(5px);
}

.admin-contact-backdrop.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-contact-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    width: 90%;
    max-width: 450px;
}

.admin-contact-modal.show {
    display: block;
    animation: modalSlideIn 0.3s ease forwards;
}

.admin-contact-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.admin-contact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.admin-contact-header i.fa-user-shield {
    font-size: 32px;
}

.admin-contact-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    flex: 1;
}

.admin-contact-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-contact-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.admin-contact-body {
    padding: 30px;
}

.admin-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.admin-info-item:hover {
    background: #e9ecf5;
    transform: translateX(5px);
}

.admin-info-item > i {
    font-size: 24px;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.admin-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.admin-value {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    word-break: break-word;
}

.admin-contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.admin-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-action-btn.call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.admin-action-btn.call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.admin-action-btn.email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-action-btn.email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

@keyframes modalSlideIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Design */
/* Desktop view - reduce top spacing for better visibility */
@media (min-width: 1025px) {
    .logo-content i {
        margin-bottom: 0.25rem;
    }
    
    .logo-content h1 {
        margin-top: -2rem;
    }
}

/* Desktop - WiFi card centered and larger */
@media (min-width: 769px) {
    .wifi-qr-card {
        width: 500px;
        padding: 2.5rem;
    }
    
    .wifi-qr-display {
        width: 300px;
        height: 300px;
    }
    
    .wifi-qr-display > * {
        width: 260px !important;
        height: 260px !important;
    }
    
    .wifi-info-item {
        padding: 1.2rem 1.5rem;
    }
    
    .wifi-network-name,
    .wifi-password {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .logo-section {
        text-align: center;
    }
    
    .logo-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    /* Hide marquee notification on mobile */
    .marquee-container {
        display: none !important;
    }
    
    .login-card {
        padding: 1.2rem;
    }
    
    .logo-content h1 {
        font-size: 1.5rem;
    }
    
    /* Mobile - WiFi card adjustments */
    .wifi-qr-card {
        width: 380px;
        padding: 2rem;
    }
    
    .wifi-qr-display {
        width: 240px;
        height: 240px;
    }
    
    .wifi-qr-display > * {
        width: 210px !important;
        height: 210px !important;
    }
    
    .wifi-info-item {
        padding: 0.9rem 1rem;
    }
    
    .wifi-network-name,
    .wifi-password {
        font-size: 1rem;
    }
    
    .logo-content p {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .wifi-qr-card {
        width: 95%;
        padding: 1.5rem;
    }
    
    .wifi-card-header h3 {
        font-size: 1.2rem;
    }
    
    .wifi-card-header i {
        font-size: 1.5rem;
    }
    
    .wifi-info-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .wifi-info-item i {
        font-size: 1.1rem;
        min-width: 20px;
    }
    
    .wifi-label {
        font-size: 0.7rem;
    }
    
    .wifi-network-name,
    .wifi-password {
        font-size: 0.95rem;
    }
    
    .wifi-qr-display {
        width: 200px;
        height: 200px;
        padding: 1rem;
    }
    
    .wifi-qr-display > * {
        width: 180px !important;
        height: 180px !important;
    }
    
    .wifi-instructions {
        font-size: 0.8rem;
    }
    
    .wifi-toggle-btn {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .logo-content p {
        font-size: 1rem;
    }
    
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .tab-btn i {
        font-size: 1.2rem;
    }
    
    .camera-container {
        max-width: 300px;
    }
}

/* Camera Permission Notification */
.camera-permission-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    min-width: 320px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.camera-permission-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.camera-permission-notification.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
}

.camera-permission-notification.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
}

.permission-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.permission-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.permission-icon i {
    font-size: 24px;
    color: white;
}

.permission-icon.success {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.permission-icon.error {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.permission-text {
    flex: 1;
}

.permission-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.camera-permission-notification.success .permission-text h4,
.camera-permission-notification.error .permission-text h4 {
    color: white;
}

.permission-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.camera-permission-notification.success .permission-text p,
.camera-permission-notification.error .permission-text p {
    color: rgba(255, 255, 255, 0.9);
}

.permission-loader {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.permission-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.permission-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .camera-permission-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 16px;
    }
    
    .permission-icon {
        width: 40px;
        height: 40px;
    }
    
    .permission-icon i {
        font-size: 20px;
    }
    
    .permission-text h4 {
        font-size: 14px;
    }
    
    .permission-text p {
        font-size: 12px;
    }
}
