* {
    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;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Styles */
.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
    margin: 100px auto;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    background: #5a6fd8;
}

.login-form button {
    width: 100%;
    padding: 15px;
}

/* Dashboard Styles */
#dashboard-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.quick-actions button {
    background: #28a745;
    font-size: 14px;
    padding: 8px 16px;
}

.quick-actions button:hover {
    background: #218838;
}

/* Environments */
#environments-section {
    padding: 30px;
}

#environments-section h2 {
    margin-bottom: 20px;
    color: #333;
}

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

.environment-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.environment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.environment-name {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.environment-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.running {
    background: #28a745;
}

.status-indicator.stopped {
    background: #dc3545;
}

.environment-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.environment-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
}

.toggle-label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #dc3545;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch:hover {
    transform: scale(1.05);
}

.toggle-switch.active {
    background: #28a745;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.environment-group {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-text {
    font-weight: 600;
}

.status-text {
    color: #495057;
}

.environment-card.running {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
}

.environment-card.stopped {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #fff5f5 100%);
}

.no-environments {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-environments p:first-child {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-environments p:last-child {
    font-size: 14px;
}

/* Utility Classes */
.error {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.hidden {
    display: none !important;
}

/* Admin Styles */
.admin-section {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.admin-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.data-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
}

.data-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-item:last-child {
    border-bottom: none;
}

.data-item:hover {
    background: #f8f9fa;
}

.data-item-info {
    flex: 1;
}

.data-item-title {
    font-weight: 600;
    color: #333;
}

.data-item-subtitle {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.data-item-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge.admin {
    background: #dc3545;
}

.badge.active {
    background: #28a745;
}

.badge.inactive {
    background: #6c757d;
}

.cluster-item {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
}

.cluster-header {
    padding: 12px 15px;
    background: #e9ecef;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.cluster-services {
    padding: 10px 15px;
}

.service-item {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 600;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-form {
        margin: 50px auto;
        padding: 30px 20px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .environments-grid {
        grid-template-columns: 1fr;
    }
}/* M
odal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content .form-group {
    margin: 20px 30px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.form-actions button[type="submit"] {
    background-color: #007bff;
    color: white;
}

.form-actions button[type="button"] {
    background-color: #6c757d;
    color: white;
}

.form-actions button:hover {
    opacity: 0.9;
}

/* Danger Button */
.danger-btn {
    background-color: #dc3545 !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.danger-btn:hover {
    background-color: #c82333 !important;
}

/* Warning Message */
.warning-message {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 14px;
}

/* Data Item Actions */
.data-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.data-item-info {
    flex: 1;
}

.data-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.data-item-subtitle {
    color: #666;
    font-size: 14px;
}