:root {
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

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

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(13, 110, 253, 0.2);
    border-left-color: #0d6efd;
}

.main-content {
    padding-top: 1rem;
    min-height: calc(100vh - 56px);
}

.card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table > thead > tr > th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table > tbody > tr > td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

.pagination {
    margin-bottom: 0;
}

.footer {
    border-top: 1px solid #dee6ed;
    margin-top: 2rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
    }
    .main-content {
        margin-left: 0 !important;
    }
}

.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1060;
}

code {
    color: #d63384;
    background-color: #f8f9fa;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
}

.border-start {
    border-left-width: 4px !important;
}

.card-title {
    font-weight: 600;
}
