/* Kuwait Ministry of Interior - Emergency Location System */
:root {
    --kuwait-green: #00A651;
    --kuwait-red: #D52B1E;
    --kuwait-blue: #1e3d72;
    --kuwait-black: #000000;
    --kuwait-white: #ffffff;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Kuwait branding navbar */
.navbar-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.kuwait-logo {
    height: 40px;
    width: 40px;
    margin-right: 12px;
    object-fit: contain;
    background-color: transparent;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-arabic {
    font-size: 14px;
    color: var(--kuwait-green);
    font-weight: 700;
}

.brand-english {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
}

.emergency-badge {
    background: linear-gradient(45deg, var(--kuwait-red), #ff4757);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Kuwait themed navbar */
.navbar-dark {
    background: linear-gradient(135deg, var(--kuwait-blue) 0%, #2c5282 100%) !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.navbar, .navbar-expand-lg, .navbar-dark, nav {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Remove any box-shadow that might look like a border */
.navbar, .navbar-expand-lg, .navbar-dark, nav {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 500;
}

/* Login page styles */
.card.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control {
    border-left: none;
}

.form-control:focus {
    border-left: none;
    box-shadow: none;
}

.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
    background-color: #fff;
}

/* Dashboard styles */
.call-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    margin: 0;
}

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

.call-time {
    font-size: 0.875rem;
    color: #6c757d;
}

.call-number {
    font-weight: 600;
    color: #212529;
}

.call-device {
    font-size: 0.8rem;
    color: #6c757d;
}

.call-accuracy {
    font-size: 0.75rem;
}

/* Map container */
#map {
    min-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #map {
        height: 400px;
    }
    
    .call-list {
        max-height: 400px;
    }
}

/* Connection status */
.connection-status .badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Custom info window styles */
.gm-style .gm-style-iw-c {
    border-radius: 8px;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.info-window {
    padding: 8px;
}

.info-window h6 {
    margin-bottom: 8px;
    color: #212529;
}

.info-window p {
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Scrollbar styles */
.call-list::-webkit-scrollbar {
    width: 6px;
}

.call-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.call-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.call-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Kuwait footer */
.kuwait-footer {
    background: linear-gradient(135deg, var(--kuwait-blue) 0%, #2c5282 100%);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 3px solid var(--kuwait-green);
}

.footer-logo {
    height: 50px;
    width: 50px;
    margin-right: 15px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.footer-arabic {
    font-size: 16px;
    font-weight: 700;
    color: var(--kuwait-green);
    margin-bottom: 5px;
}

.emergency-info {
    background: rgba(213, 43, 30, 0.1);
    border: 1px solid var(--kuwait-red);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.emergency-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--kuwait-red);
    text-align: center;
}

/* Responsive adjustments for branding */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .kuwait-logo {
        margin-right: 8px;
    }
    
    .emergency-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}