/* Variabile CSS pentru culori și tranziții */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --accent-color: #ffd700;
    --text-color: #2c3e50;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Stiluri generale */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Card principal */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
}

/* Formular */
.form-control {
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    padding: 12px;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Butoane */
.btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, #357abd 100%);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 50px;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.timeline-badge:hover {
    transform: scale(1.1);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Badge-uri pentru tipuri de activități */
.timeline-badge.tourist { background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); }
.timeline-badge.restaurant { background: linear-gradient(135deg, #FF5722 0%, #f4511e 100%); }
.timeline-badge.transport { background: linear-gradient(135deg, #2196F3 0%, #1e88e5 100%); }
.timeline-badge.beach { background: linear-gradient(135deg, #00BCD4 0%, #00acc1 100%); }
.timeline-badge.hidden-gem { background: linear-gradient(135deg, #FFC107 0%, #ffb300 100%); }

/* Hidden Gems */
.hidden-gem-item {
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.hidden-gem-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Loading indicator */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animații pentru elemente */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-badge {
        width: 32px;
        height: 32px;
    }
}

/* Îmbunătățiri pentru accesibilitate */
:focus {
    outline: 3px solid rgba(74, 144, 226, 0.5);
    outline-offset: 2px;
}

/* Scrollbar personalizat */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #357abd;
}

.day-section {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.day-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Timeline styling */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out forwards;
}

.timeline-badge {
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
}

.timeline-badge i {
    font-size: 18px;
}

.timeline-content {
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Badge colors pentru diferite tipuri de activități */
.timeline-badge.tourist {
    background-color: #28a745;
}

.timeline-badge.hidden-gem {
    background-color: #ffd700;
    color: #fff;
}

.timeline-badge.restaurant {
    background-color: #dc3545;
}

/* Local tips */
.local-tip {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 0 5px 5px 0;
    margin-top: 10px;
}

.local-tip i {
    color: #ffc107;
    margin-right: 5px;
}

/* Places between */
.places-between .card {
    border: 1px solid rgba(0,0,0,0.1);
}

.places-between .btn-outline-info {
    border-radius: 20px;
}

/* Loading indicator */
#loadingIndicator {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 20px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-badge {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    
    .timeline-badge i {
        font-size: 14px;
    }
}

/* Distance badges */
.distance-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 12px;
    font-size: 0.85em;
    margin-left: 10px;
}

/* Modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: #fff3cd;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 20px;
}

.tip-content {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.additional-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Icons */
.bx {
    vertical-align: middle;
}

/* Select2 customization */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
}

#loadingSpinner {
    margin: 2rem 0;
}

.input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#days {
    max-width: 150px;
    border-radius: 0;
}

.theme-text {
    font-style: italic;
    opacity: 0.9;
    margin-top: 4px;
}

.timeline-badge.transport {
    background-color: #28a745;
}

.timeline-badge.beach {
    background-color: #17a2b8;
}

.list-group-item i {
    margin-right: 8px;
}

.card-header i {
    margin-right: 8px;
}

/* Stiluri pentru cardurile de sfaturi și transport */
.card.shadow-sm {
    transition: transform 0.2s;
}

.card.shadow-sm:hover {
    transform: translateY(-2px);
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px 16px;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Animații pentru carduri */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out forwards;
}

/* Card header pentru zile */
.card-header[role="button"] {
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-header[role="button"]:hover {
    background-color: #0056b3 !important;
}

.card-header .bx-chevron-down {
    transition: transform 0.3s;
}

.collapsed .bx-chevron-down {
    transform: rotate(-90deg);
}

/* Distanțe și transport */
.distance-to-next {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
}

.distance-to-next i {
    color: #6c757d;
}

/* Butoane și interacțiuni */
.btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    color: white;
}

.timeline-badge.hidden-gem i {
    font-size: 1.2em;
    line-height: 32px;
}

/* Stiluri pentru secțiunea de informații despre oraș */
.info-section {
    position: relative;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: all var(--transition-speed);
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-section h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-section .bx {
    font-size: 1.2em;
}

.info-content {
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.6;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.info-content ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

.info-content ul li:before {
    content: '\e87d';
    font-family: 'boxicons';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.info-content .alert {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9em;
}

.info-content .emergency-number {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

.info-content .currency-rate {
    font-weight: 600;
    color: #28a745;
}

.info-content .warning-zone {
    color: #dc3545;
    font-weight: 500;
}

/* Responsive adjustments for city info */
@media (max-width: 768px) {
    .info-section {
        padding: 12px;
    }
    
    .info-content {
        font-size: 0.9em;
    }
}

/* Stiluri pentru header-ul card-ului */
.card-header[data-bs-toggle="collapse"] {
    transition: background-color var(--transition-speed);
}

.card-header[data-bs-toggle="collapse"]:hover {
    background-color: #357abd !important;
}

.card-header[data-bs-toggle="collapse"] .bx-chevron-down {
    transition: transform var(--transition-speed);
}

.card-header[data-bs-toggle="collapse"][aria-expanded="true"] .bx-chevron-down {
    transform: rotate(180deg);
}

.card-header h5 {
    margin: 0;
    padding: 8px 0;
}

.card-header .theme-text {
    font-size: 0.9em;
    opacity: 0.9;
    margin-left: 8px;
}

/* Animație pentru iconița de expandare */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.card-header:hover .bx-chevron-down {
    animation: bounce 1s ease infinite;
} 