/* css/event-task-manager.css */

.event-task-manager {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.event-header {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #007cba;
}

.event-header h2 {
    margin: 0 0 0.5rem 0;
    color: #23282d;
    font-size: 2rem;
}

.event-dates {
    margin-bottom: 1rem;
}

.duration {
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
}

/* Multi-day navigation */
.event-days-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.day-tab {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.75rem 1rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: none;
}

.day-tab:hover {
    background: #e9ecef;
    color: #333;
}

.day-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
    transform: translateY(1px);
}

.day-content {
    margin-top: 1rem;
}

.day-header {
    color: #23282d;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

.no-tasks {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    color: #666;
    border-radius: 6px;
    font-style: italic;
}

.task-date-badge {
    background: #28a745;
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 1rem;
    font-weight: normal;
}

.event-description {
    color: #555;
    margin: 1rem 0 0 0;
    line-height: 1.6;
}

.tasks-container {
    display: grid;
    gap: 2rem;
}

.task-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.task-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.task-name {
    margin: 0 0 1rem 0;
    color: #007cba;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.task-description {
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.time-slots h4 {
    color: #23282d;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin: 0.5rem 0;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.slot-info {
    flex: 1;
}

.time-range {
    font-weight: 600;
    color: #23282d;
}

.slot-capacity {
    color: #666;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.general-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.task-capacity {
    font-weight: 600;
    color: #23282d;
}

.assign-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.assign-button:hover {
    background: #005a87;
}

.assign-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.slot-full,
.task-full {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.assignments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.assignments h5 {
    margin: 0 0 0.5rem 0;
    color: #23282d;
    font-size: 1rem;
}

.assignments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assignments li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.assignments li:last-child {
    border-bottom: none;
}

.cancel-assignment {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.cancel-assignment:hover {
    background: #c82333;
}

/* Modal 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;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    color: #23282d;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #23282d;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #007cba;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #005a87;
}

.form-actions button[type="button"] {
    background: #6c757d;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #545b62;
}

/* Message Styles */
#message-area {
    margin-top: 2rem;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-task-manager {
        margin: 0 1rem;
    }
    
    .event-header {
        padding: 1.5rem;
    }
    
    .event-header h2 {
        font-size: 1.5rem;
    }
    
    .event-days-nav {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .day-tab {
        border-radius: 6px;
        text-align: center;
    }
    
    .day-tab.active {
        transform: none;
    }
    
    .day-header {
        font-size: 1.25rem;
    }
    
    .task-item {
        padding: 1rem;
    }
    
    .task-name {
        font-size: 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .task-date-badge {
        margin-left: 0;
    }
    
    .time-slot,
    .general-task {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .slot-info {
        width: 100%;
    }
    
    .slot-capacity {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .assignments li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cancel-assignment {
        margin-left: 0;
        align-self: flex-end;
    }
}