/* Admin Portal Styles */

/* Logo area */
.logo-area {
    width: 100px;
    height: 100px;
    margin: 10px;
}

/* Content area */
#content-area {
    min-height: 500px;
    padding: 20px;
}

/* Service Coverage Maps */
#country-map, #area-map {
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 5px;
    z-index: 1;
}

/* Ensure Leaflet controls are above other elements */
.leaflet-control-container {
    z-index: 1000;
}

/* Coverage table styles */
.coverage-table {
    margin-top: 20px;
}

/* Coverage item badges */
.coverage-badge {
    font-size: 0.85em;
}

/* Map loading indicator */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Login modal */
#loginModal .modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#loginModal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px 10px 0 0;
}

#loginModal .modal-title {
    font-weight: 600;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-weight: 600;
}

/* User info in navbar */
#user-info {
    align-items: center;
}

.navbar-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table th {
    font-weight: 600;
    border: none;
}

.table td {
    border: none;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Validation status badges */
.validation-status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.validation-status .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

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

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    margin: 2rem auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-area {
        width: 60px;
        height: 60px;
        margin: 5px;
    }
    
    #content-area {
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .validation-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .validation-status .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
}

/* Code styling for UUIDs */
code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

/* Welcome dashboard icons */
.fa-3x {
    font-size: 3rem !important;
}

/* Status indicators */
.bg-success {
    background-color: #28a745 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-primary {
    background-color: #007bff !important;
}

/* Modal enhancements */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    border: none;
}

/* Form styling */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Badge role styling */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-primary {
    background-color: #007bff !important;
}

/* Utility classes */
.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Dashboard cards hover effect */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.dashboard-card:active {
    transform: translateY(-2px);
}