.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0px;
    flex-wrap: wrap;
}
.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-decoration: none;
}
.tab-btn:hover {
    color: #1e293b;
    background-color: #f8fafc;
}
.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 700;
    background-color: rgba(37, 99, 235, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-premium {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info span.label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 4px;
    display: block;
}
.stat-info span.value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-indigo { background: #eef2ff; color: #6366f1; }

.card-premium {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert.success { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

.form-control-custom {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: all 0.2s;
}
.form-control-custom:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-action {
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-edit { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.btn-edit:hover { background: #4338ca; color: white; }
.btn-delete { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }
.btn-delete:hover { background: #ef4444; color: white; }
.btn-map { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.btn-map:hover { background: #10b981; color: white; }

.img-thumb-table {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s;
}
.img-thumb-table:hover {
    transform: scale(1.1);
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-box {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    overflow: hidden;
}
.modal-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.photo-view-modal {
    max-width: 850px;
    width: 95%;
}
.photo-view-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #0f172a;
    border-radius: 12px;
    border: 2px solid #334155;
}

.pagination-link {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}
.pagination-link.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}
