@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-secondary: #64748b;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #0ea5e9;
    --color-dark: #1e293b;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 0.5rem;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-gray-100);
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-gray-900);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.navbar-custom {
    background-color: var(--color-primary) !important;
    height: var(--header-height);
    box-shadow: var(--box-shadow);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--color-white);
    font-weight: 500;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.navbar-custom .dropdown-menu {
    background-color: var(--color-white);
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.navbar-custom .dropdown-item {
    color: var(--color-gray-700);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
}

.card-custom {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card-custom:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.card-header-custom {
    background-color: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

.btn-secondary-custom {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

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

.btn-warning-custom {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: var(--color-gray-900);
}

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

.table-custom {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-custom thead th {
    background-color: var(--color-gray-100);
    border-bottom: 2px solid var(--color-gray-200);
    color: var(--color-gray-700);
    font-weight: 600;
    padding: 0.875rem 1rem;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table-custom tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-gray-200);
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background-color: var(--color-gray-50);
}

.form-control-custom {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label-custom {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.alert-custom {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    border: none;
    margin-bottom: 1rem;
}

.alert-success-custom {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-warning-custom {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-danger-custom {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info-custom {
    background-color: #e0f2fe;
    color: #075985;
}

.badge-custom {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.badge-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.badge-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

.badge-warning {
    background-color: var(--color-warning);
    color: var(--color-gray-900);
}

.badge-danger {
    background-color: var(--color-danger);
    color: var(--color-white);
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.content-wrapper {
    background-color: var(--color-white);
   (--border-radius);
 border-radius: var    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    min-height: calc(100vh - var(--header-height) - 3rem);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding-top: var(--header-height);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
}

.footer-custom {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

.shadow-sm-custom {
    box-shadow: var(--box-shadow) !important;
}

.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg-custom {
    box-shadow: var(--box-shadow-lg) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.d-flex-custom {
    display: flex !important;
}

.flex-column-custom {
    flex-direction: column !important;
}

.justify-content-between-custom {
    justify-content: space-between !important;
}

.align-items-center-custom {
    align-items: center !important;
}

.gap-1-custom { gap: 0.25rem !important; }
.gap-2-custom { gap: 0.5rem !important; }
.gap-3-custom { gap: 1rem !important; }
.gap-4-custom { gap: 1.5rem !important; }

.p-1-custom { padding: 0.25rem !important; }
.p-2-custom { padding: 0.5rem !important; }
.p-3-custom { padding: 1rem !important; }
.p-4-custom { padding: 1.5rem !important; }

.m-1-custom { margin: 0.25rem !important; }
.m-2-custom { margin: 0.5rem !important; }
.m-3-custom { margin: 1rem !important; }
.m-4-custom { margin: 1.5rem !important; }

.mt-1-custom { margin-top: 0.25rem !important; }
.mt-2-custom { margin-top: 0.5rem !important; }
.mt-3-custom { margin-top: 1rem !important; }
.mt-4-custom { margin-top: 1.5rem !important; }

.mb-1-custom { margin-bottom: 0.25rem !important; }
.mb-2-custom { margin-bottom: 0.5rem !important; }
.mb-3-custom { margin-bottom: 1rem !important; }
.mb-4-custom { margin-bottom: 1.5rem !important; }

.mx-auto-custom { margin-left: auto !important; margin-right: auto !important; }

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .page-container {
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

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

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

.modal-content-custom {
    background-color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.modal-header-custom {
    background-color: var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer-custom {
    background-color: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.input-group-custom .form-control {
    border-radius: var(--border-radius);
}

.input-group-custom .input-group-text {
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
}

.pagination-custom .page-item .page-link {
    color: var(--color-primary);
    border-color: var(--color-gray-200);
    padding: 0.5rem 0.875rem;
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination-custom .page-item:hover .page-link {
    background-color: var(--color-gray-100);
}

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

.breadcrumb-custom .breadcrumb-item {
    color: var(--color-gray-500);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--color-gray-700);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-gray-400);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gray-200);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    color: var(--color-gray-700);
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
}

.dropdown-divider {
    border-color: var(--color-gray-200);
    margin: 0.5rem 0;
}

.list-group-custom .list-group-item {
    border-color: var(--color-gray-200);
    padding: 0.875rem 1rem;
}

.list-group-custom .list-group-item:hover {
    background-color: var(--color-gray-50);
}

.progress-custom {
    height: 0.5rem;
    background-color: var(--color-gray-200);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 1rem;
    transition: width 0.6s ease;
}

.spinner-custom {
    color: var(--color-primary);
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
