/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 20px;
    padding-bottom: 40px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    text-align: center;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-check {
    margin-top: 25px;
    margin-bottom: 25px;
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label a {
    color: #3498db;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Button styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Invalid feedback */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.form-control:invalid:focus + .invalid-feedback,
.form-control.is-invalid + .invalid-feedback {
    display: block;
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background-color: #3498db;
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
}

/* Capacity warning badges */
.badge-danger {
    background-color: #dc3545;
}

/* Full event warning */
.alert-warning .badge {
    font-size: 0.9em;
    padding: 5px 10px;
}

/* Availability status */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Disabled submit button */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Event option styling */
option:disabled {
    color: #dc3545;
    font-style: italic;
}

/* Full event indicator */
.full-event {
    background-color: #ffe6e6;
    border-left: 4px solid #dc3545;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
}

/* Colegiado validation styles */
.is-validating {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffc107' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Disabled input styling */
input[readonly] {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

/* Validation message animations */
#colegiado-info .alert {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success checkmark */
.fa-check-circle {
    color: #28a745;
}

/* Error exclamation */
.fa-exclamation-circle {
    color: #dc3545;
}

/* Question mark for not found */
.fa-question-circle {
    color: #ffc107;
}