* {
    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;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.logo-header {
    background: white;
    padding: 30px;
    display: grid;
    grid-template-columns: 234px 1fr 234px;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.logo-header .logo {
    max-width: 234px;
    height: auto;
    justify-self: start;
}

.logo-header .header-text {
    text-align: center;
    grid-column: 2;
}

.logo-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-header .subtitle {
    font-size: 1.1em;
    color: #666;
}

header {
    display: none;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

@media (max-width: 968px) {
    .content {
        grid-template-columns: 1fr;
    }

    .logo-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .logo-header .logo {
        justify-self: center;
    }

    .logo-header .header-text {
        grid-column: 1;
    }

    .logo-header h1 {
        font-size: 2em;
    }

    .logo-header .subtitle {
        font-size: 1em;
    }
}

/* Form Section */
.form-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
}

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

.form-group input:disabled,
.form-group select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.group-info {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit,
.btn-reset,
.btn-refresh {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
}

.btn-refresh {
    background: #28a745;
    color: white;
    margin-top: 15px;
    width: 100%;
}

.btn-refresh:hover {
    background: #218838;
}

/* Status Section */
.status-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-section h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.group-status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.group-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.group-card.full {
    border-left-color: #e74c3c;
    opacity: 0.7;
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.group-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.group-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.group-badge.available {
    background: #d4edda;
    color: #155724;
}

.group-badge.full {
    background: #f8d7da;
    color: #721c24;
}

.group-progress {
    margin-top: 10px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.full {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.progress-text {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Messages */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

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

.message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Select dropdown styling */
select option:disabled {
    color: #999;
    background: #f5f5f5;
}
