/* DNRASSIST Custom Styles */

:root {
    --dnr-red: #dc3545;
    --resus-green: #28a745;
    --primary-blue: #0d6efd;
    --dark-bg: #212529;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
}

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

.navbar-brand img {
    /* Make logo white to match navbar - remove this line if you want original colors */
    filter: brightness(0) invert(1);
}

/* To show logo in original colors in navbar, use this instead:
.navbar-brand img {
    filter: none;
    background: white;
    padding: 5px;
    border-radius: 5px;
}
*/

/* Logo styling */
.logo-img {
    max-width: 100%;
    height: auto;
}

/* Login page logo */
.login-header img {
    filter: none; /* Always show original colors on login page */
}

/* Print logo styling */
@media print {
    .navbar-brand img {
        filter: none !important;
    }
}

/* Login Page */
.login-container {
    max-width: 450px;
    margin: 100px auto;
}

.login-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-header {
    background: linear-gradient(135deg, var(--primary-blue), #0056b3);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 0.375rem 0.375rem 0 0;
}

.login-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* DNR Status Cards */
.dnr-status-card {
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dnr-recorded {
    background: linear-gradient(135deg, var(--dnr-red), #c82333);
    color: white;
}

.dnr-not-recorded {
    background: linear-gradient(135deg, var(--resus-green), #218838);
    color: white;
}

.dnr-status-card h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.dnr-status-card p {
    font-size: 1.1rem;
    margin: 0;
}

/* Person Details Card */
.person-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.person-details h2 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-weight: bold;
}

.person-info {
    font-size: 1.2rem;
    color: #495057;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dashboard-card .card-body {
    padding: 2rem;
}

.dashboard-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Search Results */
.search-result-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.dnr-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: bold;
    display: inline-block;
}

.dnr-badge.has-dnr {
    background-color: var(--dnr-red);
    color: white;
}

.dnr-badge.no-dnr {
    background-color: var(--resus-green);
    color: white;
}

/* Tables */
.table-hover tbody tr {
    cursor: pointer;
}

/* Buttons */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #495057;
}

.required::after {
    content: " *";
    color: var(--dnr-red);
}

/* Disclaimer */
.disclaimer {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.disclaimer strong {
    color: #856404;
}

/* Footer */
.footer {
    margin-top: 3rem;
    border-top: 1px solid #dee2e6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .dnr-status-card h1 {
        font-size: 2rem;
    }

    .dnr-status-card {
        padding: 2rem 1rem;
    }

    .person-details h2 {
        font-size: 1.5rem;
    }

    .dashboard-card .card-body {
        padding: 1.5rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }

    .dnr-status-card {
        box-shadow: none;
        border: 3px solid #000;
    }
}
