/* City Adventure Admin - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

body.map-fullscreen-open {
    overflow: hidden;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Stats cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Leaflet Map */
#route-map {
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1050;
    margin: 0;
    border-radius: 0;
}

.map-fullscreen .card-header {
    border-radius: 0;
}

.map-fullscreen .card-body {
    height: calc(100vh - 56px);
}

.map-fullscreen #route-map {
    height: 100% !important;
    border-radius: 0;
}

.leaflet-popup-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.leaflet-popup-close-button {
    color: #666;
    font-weight: bold;
}

.leaflet-popup-close-button:hover {
    color: #000;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.card-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Tables */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

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

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badges */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
    border-radius: 5px;
}

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

/* Login page */
.card.shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Upload section */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

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

.card,
.table,
.alert {
    animation: fadeIn 0.3s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Drag and Drop styles */
tr[draggable="true"] {
    transition: all 0.2s ease;
}

tr.dragging {
    opacity: 0.5;
    background-color: #e3f2fd !important;
}

tr.drag-over {
    border-top: 3px solid #0d6efd;
    background-color: #f0f8ff !important;
}

tr[draggable="true"]:active {
    cursor: grabbing !important;
}

.bi-grip-vertical {
    font-size: 1.2rem;
    cursor: grab;
}

.bi-grip-vertical:active {
    cursor: grabbing;
}
