/* DRR Management System Styles */

:root {
    --drr-red: #dc3545;
    --drr-dark: #2c3e50;
    --drr-light: #ecf0f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

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

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-drr {
    background-color: var(--drr-red);
    color: white;
}

.btn-drr:hover {
    background-color: #c82333;
    color: white;
}

.flash-message {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.profile-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid white;
}

footer {
    background-color: var(--drr-dark);
    color: white;
    margin-top: auto;
    padding: 20px 0;
}

main {
    flex: 1;
}

.message-unread {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.message-read {
    background-color: white;
}

/* Map container */
#map {
    border: 2px solid #dc3545;
    border-radius: 10px;
    z-index: 1;
}

/* Validation styling */
input:invalid {
    border-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 12px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

