:root {
    --bg-main: #f2f4f7;
    --card-bg: #ffffff;
    --primary: #166FE5;
    --text-dark: #050505;
    --text-muted: #65676b;
    --border-radius: 5px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}

body {
    background-color: var(--bg-main);
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

.navbar {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e8eaed;
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(22, 111, 229, 0.08);
}

.navbar-toggler {
    border-color: rgba(22, 111, 229, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(22, 111, 229, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.table {
    margin-bottom: 0;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 5px;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #1258b7;
    border-color: #1258b7;
}

.progress {
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.75rem;
}

.dropdown-menu {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(22, 111, 229, 0.08);
    color: var(--primary);
}

.modal-content {
    border: none;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 111, 229, 0.15);
}

.alert {
    border: none;
    border-radius: 5px;
}

.display-1 {
    font-size: 3rem;
    font-weight: 700;
}

h4 {
    font-weight: 600;
    color: var(--text-dark);
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.type-card {
    border-radius: 0 !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.type-card .card-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #1a1a2e;
}

.type-card .card-subtitle {
    font-size: 0.78rem;
    font-weight: 500;
}

.type-card .icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(22,111,229,0.1);
}

.type-card .icon-box i {
    font-size: 1.4rem;
}

.type-card.current {
    border: 2px solid #166FE5 !important;
}