/* Common styles for the entire application */

/* Base styling and fonts */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Premium Header Design */
.premium-header {
    background: linear-gradient(135deg, #002555 0%, #0047AB 50%, #2070D1 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1000;
    padding: 0.5rem 0;
}

.premium-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA4KSI+PC9yZWN0PjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSI+PC9yZWN0Pjwvc3ZnPg==');
    opacity: 0.7;
    z-index: -1;
}

.navbar {
    padding: 0.75rem 0;
    background-color: transparent;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.brand-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #ffffff;
}

.navbar-brand:hover .logo-container {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.35);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.notification-link {
    display: flex;
    align-items: center;
    padding-right: 1.5rem !important;
}

/* Magnitude badge for earthquake listings */
.magnitude-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.magnitude-badge-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 auto;
}

/* Earthquake list items */
.earthquake-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.earthquake-item:hover {
    background-color: #f8f9fa;
}

/* Earthquake popup in map */
.earthquake-popup {
    text-align: center;
    padding: 5px;
    min-width: 200px;
}

.earthquake-popup .magnitude-badge {
    margin: 0 auto;
}

/* Notification item */
.notification-item.unread-notification {
    background-color: #f0f9ff;
    border-left: 4px solid #0d6efd;
}

/* Earthquake table */
.earthquake-table .magnitude-badge {
    margin: 0 auto;
}

.earthquake-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.earthquake-row:hover {
    background-color: #f8f9fa;
}

/* Custom scrollbar for long lists */
.earthquake-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.earthquake-list::-webkit-scrollbar {
    width: 6px;
}

.earthquake-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.earthquake-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.earthquake-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cards with more modern styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
} 