/* Admin Theme Controls */
.admin-theme-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* Theme Variables */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --background-overlay: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
}

/* Light Theme */
[data-theme="light"] {
    --background-overlay: rgba(255, 255, 255, 0.95);
    --text-color: #333333;
    --text-secondary: #666666;
    --card-bg: rgba(255, 255, 255, 0.9);
    --input-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
[data-theme="dark"] {
    --background-overlay: rgba(0, 0, 0, 0.8);
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: rgba(0, 0, 0, 0.6);
    --input-bg: rgba(0, 0, 0, 0.4);
    --border-color: rgba(255, 255, 255, 0.2);
}

/* Neon Theme */
[data-theme="neon"] {
    --primary-color: #00ff88;
    --secondary-color: #0088ff;
    --accent-color: #ff0088;
    --background-overlay: rgba(0, 0, 0, 0.9);
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: rgba(0, 0, 0, 0.8);
    --input-bg: rgba(0, 0, 0, 0.6);
    --border-color: #00ff88;
}

[data-theme="neon"] .main-card {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.5);
}

[data-theme="neon"] .neon-glow {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Theme Controls */
.theme-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

/* Admin Access */
.admin-access {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.admin-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.admin-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Main Card */
.main-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color);
    animation: slideUp 0.8s ease;
}

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

/* Logo */
.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Client Area Button */
.client-area-btn {
    background: var(--accent-color);
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-area-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
    color: white;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--input-bg);
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

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

.tab-btn:hover:not(.active) {
    background: var(--secondary-color);
    color: white;
}

/* Service Content */
.service-content {
    margin-bottom: 30px;
}

.service-login-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Location Section */
.location-section {
    margin-bottom: 30px;
}

.location-label {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.location-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.location-btn {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.location-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.location-btn:hover:not(.active) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

/* Login Button */
.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Home Button */
.home-btn {
    background: var(--accent-color);
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-overlay p {
    color: white;
    font-size: 18px;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--background-overlay);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
}

.admin-header h1 {
    color: var(--text-color);
    margin: 0;
}

.close-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.admin-section {
    background: var(--card-bg);
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.admin-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

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

.admin-form .form-group {
    display: flex;
    flex-direction: column;
}

.admin-form label {
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-form input, .admin-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
}

.location-item {
    background: var(--input-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-header h4 {
    color: var(--text-color);
    margin: 0;
}

.delete-location {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.admin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.admin-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.save-btn { background: #4CAF50; }
.reset-btn { background: #ff9800; }
.export-btn { background: #2196F3; }
.import-btn { background: #9C27B0; }
.add-btn { background: var(--primary-color); }

.admin-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .service-tabs {
        flex-direction: column;
    }
    
    .location-buttons {
        gap: 8px;
    }
    
    .location-btn {
        padding: 8px 15px;
        font-size: 11px;
    }
    
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Neon Theme Animations */
@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color); }
    50% { box-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color); }
}

[data-theme="neon"] .main-card {
    animation: neonPulse 3s ease-in-out infinite;
}

[data-theme="neon"] .form-input:focus {
    box-shadow: 0 0 20px var(--primary-color);
}

[data-theme="neon"] .tab-btn.active {
    box-shadow: 0 0 15px var(--primary-color);
}