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

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #2c3e50;
}

/* Scrollbar personalizado para el sidebar */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #5a6c7d;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #7f8c9a;
}

.sidebar .nav-link {
    font-weight: 400;
    color: #bdc3c7;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease;
    border-radius: 4px;
    margin: 1px 6px;
    font-size: 0.9rem;
}

.sidebar .nav-link .bi {
    margin-right: 6px;
    color: #95a5a6;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #3498db;
}

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

.sidebar .nav-link.active .bi {
    color: #fff;
}

.sidebar-heading {
    font-size: .7rem;
    text-transform: uppercase;
    color: #7f8c8d;
    letter-spacing: 0.3px;
}

/* Main Content */
main {
    background-color: #f8f8f8;
    min-height: 100vh;
}

/* Card Styles */
.card {
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

.card-header {
    border-radius: 6px 6px 0 0 !important;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e5eb;
    color: #333;
}

.card-header.bg-primary {
    background-color: #3498db !important;
    border-bottom: none;
    color: white;
}

.card-header.bg-success {
    background-color: #27ae60 !important;
    border-bottom: none;
    color: white;
}

.card-header.bg-warning {
    background-color: #f39c12 !important;
    border-bottom: none;
    color: white;
}

.card-header.bg-danger {
    background-color: #e74c3c !important;
    border-bottom: none;
    color: white;
}

.card-header.bg-info {
    background-color: #17a2b8 !important;
    border-bottom: none;
    color: white;
}

.card-body {
    padding: 1.25rem;
}

/* Form Styles */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background-color: #fff;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
    background-color: #fff;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.3rem;
    font-size: 0.875rem;
}

.form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

/* Button Styles */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #219a52;
    border-color: #219a52;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #d68910;
    border-color: #d68910;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-outline-primary {
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    color: white;
}

/* Table Styles */
.table {
    background: white;
    font-size: 0.875rem;
}

.table thead th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-color: #eee;
    color: #444;
}

/* Badges */
.badge {
    padding: 0.3em 0.6em;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Alerts */
.alert {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #27ae60;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #e74c3c;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 3px solid #f39c12;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #3498db;
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 0.75rem 1rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item.active {
    color: #666;
}

/* Page title */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 500;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
}

/* DataTables override */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #3498db !important;
    border: none !important;
    color: white !important;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eee !important;
    border: 1px solid #eee !important;
    color: #333 !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.875rem;
}

/* Input group */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #555;
    font-size: 0.875rem;
}
