body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f0 100%);
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 3px 0 10px rgba(0,0,0,0.2);
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar .nav-item {
    margin-bottom: 0.35rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar .nav-link:hover::before {
    width: 4px;
    height: 60%;
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-left-color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link i:first-child {
    font-size: 1.15rem;
    margin-right: 0.85rem;
    width: 22px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover i:first-child {
    transform: scale(1.1);
}

.sidebar .nav-link .bi-chevron-down {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.sidebar .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

.sidebar .submenu {
    background: rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 1.5rem;
}

.sidebar .submenu li {
    margin: 0;
}

.sidebar .submenu .nav-link {
    padding: 0.7rem 1.25rem 0.7rem 2.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.85);
}

.sidebar .submenu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sidebar .submenu .nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-left-color: #ffffff;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: calc(100vh - 56px);
    overflow-y: auto;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Cards */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.nav-link.active {
    font-weight: 600;
}

#map {
    height: 520px;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.table-fixed tbody {
    display: block;
    max-height: 300px;
    overflow-y: auto;
}

.table-fixed thead,
.table-fixed tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.badge-radius {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.table-danger-row {
    background-color: rgba(220, 53, 69, 0.18);
    color: #842029;
    font-weight: 500;
}

.table-danger-row a {
    color: #842029;
    text-decoration: underline;
}

.ubicacion-mismatch {
    color: #dc3545;
    font-weight: 600;
}

.ubicacion-mismatch a {
    color: inherit;
    text-decoration: underline;
}

.preview-photo {
    max-width: 160px;
    border-radius: 0.5rem;
}
