/* AQCare Coordinator - Custom Styles */

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

/* ===== NAVIGATION STYLES ===== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-menu {
    background-color: #495057;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Only apply white color to navbar links, not tab navigation */
.navbar-menu .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-menu .nav-item {
    white-space: nowrap;
}

.navbar-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.navbar-menu .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65398d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ===== CARD STYLES ===== */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Hover card for clickable dashboard cards */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-header {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

/* ===== TABLE STYLES ===== */
.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3vh;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    margin: 1rem 2rem 2rem 2rem;
}

.login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.login-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===== UTILITY CLASSES ===== */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MODAL STYLES ===== */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ===== ALERT STYLES ===== */
.alert {
    border-radius: 10px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        min-height: auto;
    }

    .login-left,
    .login-right {
        padding: 2rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }
}

/* Responsive navbar - reduce padding on smaller screens */
@media (max-width: 1200px) {
    .navbar-menu .nav-link {
        padding: 0.5rem 0.6rem;
        margin: 0 1px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar-menu .nav-link {
        padding: 0.5rem 0.4rem;
        margin: 0;
        font-size: 0.85rem;
    }

    .navbar-menu .nav-link i {
        margin-right: 0.25rem;
    }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* ===== BADGE STYLES ===== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Custom Transfer Badge - Muted Amber Color */
.badge-transfer {
    background-color: #d97706 !important;
    color: white !important;
}

/* ===== BLAZOR ERROR UI ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.35);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== SEARCH HIGHLIGHTING ===== */
.search-highlight {
    background-color: #fff3cd;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    color: #856404;
}
