* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.screen {
    display: none !important;
}

.screen.active {
    display: block !important;
}

#dashboard-screen {
    min-height: 100vh;
    background: #f5f5f5;
}

#login-screen {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Screen */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

.tab.active {
    background: #667eea;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    display: block;
}

.message.success {
    background: #d1fae5;
    color: #059669;
    display: block;
}

/* Dashboard Screen */
.header {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    margin-bottom: 20px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
}

.status.running {
    background: #d1fae5;
    color: #059669;
}

.status.stopped {
    background: #fee2e2;
    color: #dc2626;
}

.container-controls {
    margin-top: 20px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group .btn {
    width: auto;
    min-width: 120px;
}

.container-action-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

#codeserver-link-container {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

#open-codeserver-btn {
    text-decoration: none;
    display: inline-block;
}

.credentials-info, .databases-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
}

.credential-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.credential-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
}

.credential-item .value {
    font-family: monospace;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
}

.copy-btn {
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Landing Page Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fade-in 1s ease-out 0.6s both;
}

/* Modal Styles */
#auth-modal {
    backdrop-filter: blur(4px);
}

.modal-tab-content {
    display: block;
}

.modal-tab-content.hidden {
    display: none;
}

/* Landing Page Language Selector */
#landing-language-selector {
    color: white;
}

#landing-language-selector option {
    background-color: white;
    color: #1f2937;
}

/* Carousel Styles */
#features-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-dot {
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

