/**
 * File: index.css
 * Path: /planning/timeline/index.css
 * Generated: 2025-05-12 18:30:00 (Europe/Paris)
 *
 * Styles CSS principaux pour l'application timeline.
 */

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Navigation et en-tête */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Layout principal */
.container-fluid {
    padding: 1rem;
}

.footer {
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    text-align: center;
    color: #6c757d;
}

/* Timeline */
.timeline-wrapper {
    height: calc(100vh - 170px);
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resources-panel {
    width: 250px;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 15px;
    border-right: 1px solid #dee2e6;
}

.timeline-container {
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
}

.time-headers {
    display: flex;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
    border-bottom: 1px solid #dee2e6;
}

.time-header {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
    padding: 8px 0;
    font-weight: 500;
    color: #6c757d;
}

.timeline-grid {
    display: flex;
    position: relative;
}

.timeline-column {
    width: 100px;
    height: 1500px;
    border-right: 1px dashed #dee2e6;
    flex-shrink: 0;
}

.timeline-column:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.timeline-events {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
}

.timeline-event {
    position: absolute;
    border-radius: 4px;
    padding: 8px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s, opacity 0.2s, transform 0.2s;
    user-select: none;
}

.timeline-event:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transform: scale(1.02);
}

.timeline-event h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.timeline-event p {
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.resource {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.resource:hover {
    transform: translateX(5px);
}

.dragging {
    opacity: 0.7;
    z-index: 100;
}

.event-tooltip {
    position: absolute;
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 250px;
    z-index: 1000;
    display: none;
}

.resize-handle {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    position: absolute;
    bottom: 0;
    cursor: ns-resize;
}

/* Formulaires */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.form-control:focus {
    border-color: #4a86e8;
    box-shadow: 0 0 0 0.2rem rgba(74, 134, 232, 0.25);
}

.form-control-color {
    width: 3rem;
    height: 38px;
}

/* Boutons */
.btn-primary {
    background-color: #4a86e8;
    border-color: #4a86e8;
}

.btn-primary:hover {
    background-color: #3b76d8;
    border-color: #3b76d8;
}

.btn-success {
    background-color: #6aa84f;
    border-color: #6aa84f;
}

.btn-success:hover {
    background-color: #5b9841;
    border-color: #5b9841;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.resource, .timeline-event {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .resources-panel {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .timeline-container {
        height: calc(100vh - 400px);
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}