/* Styles personnalisés pour SimpleVacances */

/* Styles généraux */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

/* Header et navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Cards */
.card {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: bold;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

/* Timeline styles */
.timeline-vertical {
    position: relative;
    padding: 20px 0;
}

.timeline-day {
    margin-bottom: 30px;
}

.timeline-day-header {
    border-radius: 8px;
    padding: 12px !important;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-day-events {
    position: relative;
    padding-left: 20px;
}

.timeline-day-events:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e9ecef, #28a745, #e9ecef);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-event {
    position: relative;
    margin-bottom: 30px;
}

/* .timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
} */

/* .timeline-event:hover .timeline-icon {
    transform: translateX(-50%) scale(1.1);
} */

.timeline-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.timeline-event:hover .timeline-content {
    transform: translateX(5px);
}

.timeline-time {
    padding-top: 15px;
}

.timeline-time .badge {
    padding: 8px 12px;
    font-weight: 500;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Vacation cards */
.vacation-card {
    transition: all 0.3s ease;
    border-left-width: 5px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.vacation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vacation-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.vacation-card .card-subtitle {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.vacation-card .btn {
    border-radius: 50px;
    padding: 0.375rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Form styles */
.form-control {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.15);
}

.form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #28a745, #218838);
    border: none;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #218838, #28a745);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-primary:hover {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 50px;
    background: linear-gradient(to right, #2c3e50, #28a745) !important;
    color: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

footer a.text-white {
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a.text-white:hover {
    color: #f8f9fa;
    text-decoration: underline;
    padding-left: 5px;
}

/* Event list */
.event-list .card {
    border-left-width: 3px;
    transition: all 0.3s ease;
}

.event-list .card:hover {
    transform: translateX(5px);
}

/* Notes */
.note-card {
    background-color: #ffffd0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Calendar styles */
.fc-event {
    cursor: pointer;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.fc-header-toolbar {
    margin-bottom: 1.5rem !important;
}

.fc-button-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3) !important;
}

.fc-button-primary:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4) !important;
}

/* Custom badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-vacation {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
}

/* Stats cards */
.stats-card {
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-card h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.stats-card p {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .timeline-day-events:before {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
    
    .timeline-time {
        text-align: left;
        margin-left: 60px;
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
