/* wwwroot/css/site.css */

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #212529;
}

main {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 2rem;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: #212529;
}

.navbar {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(90deg, #212529, #343a40) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #e9ecef;
    color: rgb(0 0 0);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(13,110,253,0.05);
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0a58ca, #0949b0);
}

.btn-outline-primary {
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.alert {
    border-radius: 12px;
}

.text-success { color: #198754 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger  { color: #dc3545 !important; }

/* Responsywność sidebaru */
@media (max-width: 767.98px) {
    .sidebar {
        width: 100% !important;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}
.sidebar {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    min-width: 70px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar .nav-link {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .sidebar-title {
    display: none !important;
}


.sidebar #sidebarToggle {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Even lighter shadows for cards to address darkness */
.shadow-sm {
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.025) !important;
}

.card.shadow-sm:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}