/**
 * style.css
 * Aangepaste stijlen voor het Radiologie EPD-systeem
 */

/* Dashboard algemene opmaak */
body {
    font-size: .875rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Sidebar stijlen */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 56px; /* Hoogte van de footer (48px) plus wat padding */
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .bi {
    margin-right: 10px;
    color: #727272;
}

.sidebar .nav-link.active {
    color: #2d4a6f;
    background: linear-gradient(90deg, rgba(45, 74, 111, 0.12) 0%, rgba(45, 74, 111, 0.05) 100%);
    border-left: 3px solid #2d4a6f;
    padding-left: calc(1rem - 3px);
    font-weight: 600;
}

.sidebar .nav-link:hover .bi,
.sidebar .nav-link.active .bi {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Navigatie met zakelijke gradient */
header.navbar,
.bg-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 50%, #3a5a7f 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .15);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

/* Login pagina */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    margin: auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-weight: 600;
    color: #007bff;
}

.login-form {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    color: #6c757d;
}

/* Werklijst stijlen */
.werklijst-container {
    margin-top: 1.5rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2d4a6f 0%, #3a5a7f 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.25);
}

/* Status kleuren voor werklijstrijen */
tr.bezig-status {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

tr.gepland-status {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

tr.afgerond-status {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Speciale opmaak voor HL7 berichten */
.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #dee2e6;
}
/**
 * Verbeterde styling voor het login formulier
 * Toe te voegen aan style.css
 */

/* Verbeterde login pagina styling */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    margin: auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: #6c757d;
    font-size: 1rem;
}

.login-form {
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.login-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
    margin: 0;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #2d4a6f;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(45, 74, 111, 0.2);
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2d4a6f 0%, #3a5a7f 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.25);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    box-shadow: 0 3px 6px rgba(30, 58, 95, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.25);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 74, 111, 0.35), 0 3px 6px rgba(30, 58, 95, 0.35);
}

.btn-block {
    display: block;
    width: 100%;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.login-footer {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Moderne badge styling met gradient */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dropdown menu verbeteringen */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(45, 74, 111, 0.1) 0%, rgba(45, 74, 111, 0.05) 100%);
    color: #2d4a6f;
}

/* Sidebar hover effect */
.sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(45, 74, 111, 0.08) 0%, rgba(45, 74, 111, 0.02) 100%);
    border-left: 3px solid rgba(45, 74, 111, 0.4);
    padding-left: calc(1rem - 3px);
}

/* Outline button hover effects */
.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2d4a6f 0%, #3a5a7f 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.25);
}

.btn-outline-primary {
    border-color: #2d4a6f;
    color: #2d4a6f;
    transition: all 0.3s ease;
}

/* Subtiele icon-only buttons voor bekijken knoppen */
.btn-icon-only {
    padding: 0.375rem 0.5rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.btn-icon-only .bi {
    font-size: 0.9rem;
    margin: 0;
}

/* Card en container verbeteringen */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
}

/* Tabel verbeteringen */
.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    text-transform: none;
    letter-spacing: 0.3px;
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Link accenten */
a {
    color: #2d4a6f;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e3a5f;
}

/* Input focus verbeteringen voor alle input types */
.form-control:focus,
.form-select:focus {
    border-color: #2d4a6f;
    box-shadow: 0 0 0 0.2rem rgba(45, 74, 111, 0.2);
}

/* Button small varianten ook verbeteren */
.btn-sm {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

/* Subtiele animatie voor actieve filter buttons */
.filter-btn.active {
    position: relative;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}