a {
    text-decoration: none !important;
}

/* =====================
   Login page
   ===================== */

.login-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #273356, #32406b);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.login-header img {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

.login-header h5 {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.login-body {
    padding: 2rem 2rem 2.5rem;
}

.login-body .form-floating label {
    color: #6c757d;
    font-size: 0.9rem;
}

.login-body .form-control {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-body .form-control:focus {
    border-color: #32406b;
    box-shadow: 0 0 0 3px rgba(50, 64, 107, 0.12);
}

.btn-login {
    background: linear-gradient(135deg, #32406b, #3d5080);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    width: 100%;
    letter-spacing: 0.03em;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-login:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #adb5bd;
    font-size: 0.8rem;
    margin: 1.25rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.link-forgot {
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.link-forgot:hover {
    color: #32406b;
}

.form-check-input:checked {
    background-color: #32406b;
    border-color: #32406b;
}

/* =====================
   Sidebar / Offcanvas
   ===================== */

.sidebar-offcanvas {
    width: 270px;
    background-color: #32406b;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background-color: #273356;
    color: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.sidebar-user-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 1.1rem 0.5rem 0.3rem;
}

.sidebar-section-label:first-child {
    margin-top: 0.25rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-nav-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logout {
    width: 100%;
    color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar-logout:hover {
    color: #fff !important;
    background-color: rgba(197, 33, 50, 0.25) !important;
}

/* =====================
   Tablice — opće
   ===================== */

.patient-table-head th {
    background-color: #32406b;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: none;
    white-space: nowrap;
}

/* Micro gumb za akcije u tablici */
.btn-xs {
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 4px;
}
