.staff-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.staff-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input[type="date"] {
    cursor: pointer;
    min-height: 42px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Search Filters */
.search-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-button,
.clear-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button {
    background-color: #4a90e2;
    color: white;
}

.filter-button:hover {
    background-color: #357abd;
}

.clear-button {
    background-color: #dc3545;
    color: white;
}

.clear-button:hover {
    background-color: #c82333;
}

/* File Upload */
.file-upload-container {
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-container:hover,
.file-upload-container.dragover {
    border-color: #4a90e2;
    background-color: #e3f2fd;
}

.file-upload-container i {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.file-upload-text {
    margin: 1rem 0;
    color: #666;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #dc3545;
    transition: all 0.3s ease;
}

.file-preview-item .remove-file:hover {
    background: #dc3545;
    color: white;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: none;
    animation: slideDown 0.3s ease-out;
    font-size: 1.1rem;
    text-align: center;
}

.success-message::before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-message.show {
    display: block;
}

/* Hide Debug Info */
.debug-info {
    display: none;
}

/* Hide Event Details Initially */
.event-details {
    display: none;
}

.event-search-input {
    width: 100%;
}

.search-results {
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.search-result-item:hover {
    background-color: #f5f5f5;
}

.submit-button {
    background-color: #4a90e2;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #357abd;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error states */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.has-error input {
    border-color: #dc3545;
}

/* Loading State */
.staff-form.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.staff-form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: #f3f3f3;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 0;
    height: 100%;
    background: #4a90e2;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progress 2s ease infinite;
}

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

@keyframes progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
} 