/* Custom Overrides for Safari Internal App */
:root {
    --bs-primary: #0d6efd;
    --primary-soft: #e3f2fd;
    --primary-hover: #0b5ed7;
}

body {
    background-color: #e3f2fd; /* Light blue background */
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #2c3e50;
}

/* Login Specific Styles */
.login-body {
    background-color: #f0f4f8; /* Very light blue/gray background */
    /* Alternatively, a subtle gradient: */
    background: linear-gradient(135deg, #f0f4f8 0%, #eef2f7 100%);
}

.login-card-wrapper {
    width: 100%;
    max-width: 480px; /* Slightly wider card as per image */
}

.login-card {
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); /* Soft, large shadow */
}

.login-title {
    color: var(--bs-primary); /* Blue instead of Red */
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
}

.custom-input {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-color: #dee2e6;
    font-size: 0.95rem;
}

.custom-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15); /* Soft blue glow */
    border-color: var(--bs-primary);
}

.input-group-text {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.form-control.border-end-0 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-btn {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    /* transition: all 0.3s; */
}

.copyright-text {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Dashboard Updates */
.card-dashboard {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: none;
    transition: transform 0.2s;
}

.card-dashboard:hover {
    transform: translateY(-3px);
}

.header-brand {
    font-weight: 700;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* Modern Header Styles */
.navbar-modern {
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.brand-icon-wrapper {
    width: 35px;
    height: 35px;
    background: var(--bs-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.tracking-tight {
    letter-spacing: -0.5px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.user-greeting {
    line-height: 1;
    margin-bottom: 2px;
}

.user-name {
    line-height: 1;
    font-size: 0.9rem;
}

.btn-logout {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: #dc3545;
    background: #fff1f2;
}

/* Modern Footer Styles */
.footer-modern {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: 3rem;
}

.footer-brand-icon {
    width: 30px;
    height: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Ensure footer sticks to bottom if content is short */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Navigation Menu Styles */
.nav-link-custom {
    font-weight: 500;
    color: #64748b !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link-custom:hover {
    color: var(--bs-primary) !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.nav-link-custom.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
}

/* User Dropdown Styles */
.user-dropdown-toggle {
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-dropdown-toggle:hover {
    opacity: 0.8;
}

.dropdown-menu-custom {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 1rem !important;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.text-danger:hover {
    background-color: #fff1f2;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #f1f5f9;
}
