/* Estilos para la gestión de usuarios */

/* Header de Usuarios */
.users-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(107, 0, 255, 0.3);
}

.users-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.users-title i {
  font-size: 2rem;
}

.users-title h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.users-subtitle p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

/* Estadísticas de Usuarios */
.users-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6B00FF, #C21DE0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #6B00FF;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sección de Nuevo Usuario */
.new-user-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, #6B00FF, #C21DE0);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header i {
  font-size: 1.2rem;
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.new-user-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input, .form-select {
  padding: 0.75rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #6B00FF;
  box-shadow: 0 0 0 3px rgba(107, 0, 255, 0.1);
}

.modules-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #6B00FF;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6B00FF, #C21DE0);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 0, 255, 0.3);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
  background: #e9ecef;
}

/* Lista de Usuarios */
.users-list-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 25px;
  font-size: 0.9rem;
  width: 250px;
}

.search-input:focus {
  outline: none;
  border-color: #6B00FF;
}

.search-icon {
  position: absolute;
  right: 1rem;
  color: #999;
}

.users-table-container {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th {
  background: #f8f9fa;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e5e5;
}

.users-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.user-row:hover {
  background: #f8f9fa;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: #6B00FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-name {
  font-weight: 600;
  color: #333;
}

.user-email {
  font-size: 0.85rem;
  color: #666;
}

.user-type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.user-type-badge.administrador {
  background: #dc3545;
  color: white;
}

.user-type-badge.tesorero {
  background: #28a745;
  color: white;
}

.user-type-badge.financiero {
  background: #17a2b8;
  color: white;
}

.user-type-badge.administrativo {
  background: #ffc107;
  color: #333;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.modules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.module-badge {
  background: #e9ecef;
  color: #495057;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.module-badge.super {
  background: #6B00FF;
  color: white;
}

.last-access {
  font-size: 0.85rem;
  color: #666;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-edit, .btn-delete {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-edit {
  background: #17a2b8;
  color: white;
}

.btn-edit:hover {
  background: #138496;
  transform: translateY(-1px);
}

.btn-delete {
  background: #dc3545;
  color: white;
}

.btn-delete:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .users-title h1 {
    font-size: 2rem;
  }
  
  .users-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-input {
    width: 100%;
  }
  
  .users-table {
    font-size: 0.85rem;
  }
  
  .users-table th,
  .users-table td {
    padding: 0.5rem;
  }
}
:root { 
    color-scheme: light dark; 
}

.base-datos-main-content {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    margin: 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0e8ff 100%);
    min-height: 100vh;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.page-title {
    color: #6B00FF;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: #666;
    text-align: center;
    font-size: 18px;
    margin-bottom: 3rem;
}

.upload-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(194, 29, 224, 0.1);
    border: 2px solid #C21DE0;
}

.upload-title {
    color: #6B00FF;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-description {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 16px;
    line-height: 1.6;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.file-input-container {
    border: 2px dashed #C21DE0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f4ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-container:hover {
    border-color: #6B00FF;
    background: #f0e8ff;
}

.file-input-container.dragover {
    border-color: #6B00FF;
    background: #e8e0ff;
    transform: scale(1.02);
}

.file-input {
    display: none;
}

.file-label {
    font-size: 18px;
    color: #6B00FF;
    font-weight: 600;
    cursor: pointer;
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: none;
}

.file-info.show {
    display: block;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.file-size {
    color: #666;
    font-size: 14px;
}

.upload-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.upload-option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-option:hover {
    border-color: #C21DE0;
    background: #f8f4ff;
}

.upload-option.selected {
    border-color: #6B00FF;
    background: #f0e8ff;
}

.upload-option-icon {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.upload-option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-option-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.upload-button {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 29, 224, 0.3);
}

.upload-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.history-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(194, 29, 224, 0.1);
    border: 2px solid #C21DE0;
}

.history-title {
    color: #6B00FF;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.history-table th {
    background: #f8f4ff;
    color: #6B00FF;
    font-weight: 600;
}

.history-table tr:hover {
    background: #f8f4ff;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #6B00FF;
    color: white;
}

.btn-primary:hover {
    background: #5a00e6;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #C21DE0;
    color: white;
}

.btn-secondary:hover {
    background: #b01bc6;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.loading {
    display: none;
    text-align: center;
    padding: 1rem;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6B00FF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .base-datos-main-content {
        padding: 1rem;
    }
    
    .upload-options {
        grid-template-columns: 1fr;
    }
    
    .history-table {
        font-size: 14px;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0 2px;
}

.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
}
/* Cross-browser compatibility fixes for Consolidador Bancario */

/* Fix for webkit-image-set warnings */
.background-image-compat {
  background-image: -webkit-image-set(
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23f0f0f0"/></svg>') 1x,
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23e0e0e0"/></svg>') 2x
  );
  background-image: image-set(
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23f0f0f0"/></svg>') 1x,
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23e0e0e0"/></svg>') 2x
  );
}

/* User select compatibility for all browsers */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Text size adjust for better mobile compatibility */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Forced color adjust for better accessibility */
.forced-color-adjust-auto {
  -webkit-forced-color-adjust: auto;
  forced-color-adjust: auto;
}

.forced-color-adjust-none {
  -webkit-forced-color-adjust: none;
  forced-color-adjust: none;
}

/* Filter compatibility */
.filter-none {
  -webkit-filter: none;
  filter: none;
}

.filter-blur {
  -webkit-filter: blur(5px);
  filter: blur(5px);
}

/* Transform compatibility */
.transform-compat {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Animation compatibility */
@keyframes fadeInCompat {
  from { 
    opacity: 0; 
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }
  to { 
    opacity: 1; 
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.fade-in-compat {
  -webkit-animation: fadeInCompat 0.5s ease-in;
  animation: fadeInCompat 0.5s ease-in;
}

/* Box shadow compatibility */
.box-shadow-compat {
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Border radius compatibility */
.border-radius-compat {
  -webkit-border-radius: 0.5rem;
  border-radius: 0.5rem;
}

/* Flexbox compatibility */
.flex-compat {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

/* Grid compatibility */
.grid-compat {
  display: -ms-grid;
  display: grid;
}

/* Transition compatibility */
.transition-compat {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Media queries for better mobile support */
@media screen and (max-width: 768px) {
  .mobile-compat {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Print styles compatibility */
@media print {
  .print-compat {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
/* Estilos mejorados para formularios de login - v2.0 */

/* Campos de entrada mejorados - Mayor especificidad */
form input[type="email"], 
form input[type="password"], 
form input[type="text"],
.card input[type="email"], 
.card input[type="password"], 
.card input[type="text"],
input[type="email"], 
input[type="password"], 
input[type="text"] { 
    padding: 14px 16px !important; 
    font-size: 16px !important; 
    border: 2px solid #e5e5e5 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

form input[type="email"]:focus, 
form input[type="password"]:focus, 
form input[type="text"]:focus,
.card input[type="email"]:focus, 
.card input[type="password"]:focus, 
.card input[type="text"]:focus,
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="text"]:focus {
    outline: none !important;
    border-color: #6B00FF !important;
    box-shadow: 0 0 0 3px rgba(107, 0, 255, 0.1) !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

input[type="email"]::placeholder, 
input[type="password"]::placeholder, 
input[type="text"]::placeholder {
    color: #999;
    opacity: 1;
    font-style: normal;
}

input[type="email"]:focus::placeholder, 
input[type="password"]:focus::placeholder, 
input[type="text"]:focus::placeholder {
    color: #ccc;
    opacity: 0.7;
}

/* Estados de validación */
input[type="email"].error, 
input[type="password"].error, 
input[type="text"].error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

input[type="email"].success, 
input[type="password"].success, 
input[type="text"].success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Información de dominios */
.domain-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    text-align: center;
}

.domain-info p {
    margin: 4px 0;
    font-size: 14px;
}

.domain-info p:first-child {
    color: #6B00FF;
    font-weight: 600;
}

.domain-info p:last-child {
    color: #666;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Mejoras para accesibilidad */
input[type="email"]:focus-visible, 
input[type="password"]:focus-visible, 
input[type="text"]:focus-visible {
    outline: 2px solid #6B00FF;
    outline-offset: 2px;
}

/* Animaciones suaves */
input[type="email"], 
input[type="password"], 
input[type="text"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Estilos para diferentes navegadores */
input[type="email"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder {
    color: #999;
    opacity: 1;
}

input[type="email"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
input[type="text"]::-moz-placeholder {
    color: #999;
    opacity: 1;
}

input[type="email"]:-ms-input-placeholder,
input[type="password"]:-ms-input-placeholder,
input[type="text"]:-ms-input-placeholder {
    color: #999;
    opacity: 1;
}

/* Responsive design */
@media (max-width: 480px) {
    input[type="email"], 
    input[type="password"], 
    input[type="text"] {
        font-size: 16px; /* Previene zoom en iOS */
        padding: 12px 14px;
    }
}
/* Estilos exactos del proyecto antiguo - Pagos Masivos */

:root { 
    color-scheme: light dark; 
}

body { 
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0e8ff 100%);
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(107, 0, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-title {
    color: #6B00FF;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin: 0 0 2rem 0;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #6B00FF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6B00FF;
}

.form-select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 3px rgba(107, 0, 255, 0.1);
}

.form-select option {
    color: #333;
    background: white;
    padding: 8px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 0, 255, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

/* Estilos para inputs de archivo */
.file-input-container {
    border: 2px dashed #C21DE0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f4ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-container:hover {
    border-color: #6B00FF;
    background: #f0e8ff;
}

.file-input {
    display: none;
}

.file-label {
    color: #6B00FF;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

.file-info {
    margin-top: 1rem;
    display: none;
}

.file-name {
    font-weight: 600;
    color: #6B00FF;
}

.file-size {
    color: #666;
    font-size: 14px;
}

.file-input-container-small {
    border: 1px dashed #C21DE0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: #f8f4ff;
    cursor: pointer;
}

.file-label-small {
    color: #6B00FF;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Sistema de búsqueda y filtrado */
.search-filter-container {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.search-section {
    margin-bottom: 1rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
}

.search-stats {
    margin-top: 0.5rem;
    color: #666;
    font-size: 14px;
}

.filter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.filter-options {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.filter-label {
    color: #6B00FF;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.upload-ids-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Tabla de pagos */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.pagos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px;
}

.pagos-table th,
.pagos-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.pagos-table th {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pagos-table tbody tr:hover {
    background-color: rgba(107, 0, 255, 0.05);
}

.pago-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendiente {
    background: #fff3cd;
    color: #856404;
}

.status-procesado {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-completado {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 1rem;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .pagos-table {
        font-size: 12px;
        min-width: 800px;
    }
}

/* Clases para CSP compliance */
.form-help-text {
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

.hidden-card {
    display: none;
    margin-top: 1rem;
}

.btn-group-margin {
    margin-top: 1rem;
}

/* Estilos para paginación */
.pagination-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 16px;
    background: #6B00FF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.pagination-btn:hover:not(:disabled) {
    background: #5a00d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 0, 255, 0.3);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 120px;
    text-align: center;
}

.pagination-per-page {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

.pagination-per-page:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 2px rgba(107, 0, 255, 0.2);
}

.stats-info {
    text-align: center;
    margin: 0.5rem 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 8px;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 4px solid #6B00FF;
}

/* Responsive para paginación */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        min-width: 80px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pagination-info {
        min-width: 100px;
        font-size: 12px;
    }
    
    .pagination-per-page {
        min-width: 120px;
        font-size: 12px;
    }
}

/* Estilos para sección de valor */
.valor-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.valor-section .filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.filter-input:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 2px rgba(107, 0, 255, 0.25);
}

/* Estilos para inputs de valor en la tabla */
.valor-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    background-color: #fff;
    min-width: 80px;
}

.valor-input:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 2px rgba(107, 0, 255, 0.25);
}

.valor-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Estilos para sección de cuentas no encontradas */
.no-encontrados-section {
    margin: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.no-encontrados-section .alert {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.no-encontrados-section h5 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 700;
}

.no-encontrados-section p {
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 14px;
}

.no-encontrados-list {
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.no-encontrados-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.no-encontrados-list li {
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #495057;
    border-left: 3px solid #ffc107;
}

.no-encontrados-list li:hover {
    background: #e9ecef;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}
/* Paleta de colores Picap - Archivo centralizado */
:root {
  /* Colores principales Picap del proyecto original */
  --picap-purple-dark: #6B00FF;
  --picap-purple-light: #C21DE0;
  --picap-purple-lighter: #e8a8f0;
  --picap-purple-lightest: #f0e8ff;
  
  /* Colores neutros */
  --picap-white: #ffffff;
  --picap-gray-light: #f8f4ff;
  --picap-gray-medium: #f0e8ff;
  --picap-gray-dark: #495057;
  --picap-gray-darker: #343a40;
  
  /* Colores de estado */
  --picap-success: #28a745;
  --picap-success-light: #d4edda;
  --picap-error: #dc3545;
  --picap-error-light: #f8d7da;
  --picap-warning: #ffc107;
  --picap-warning-light: #fff3cd;
  --picap-info: #17a2b8;
  --picap-info-light: #d1ecf1;
  
  /* Sombras */
  --picap-shadow: rgba(194, 29, 224, 0.15);
  --picap-shadow-medium: rgba(194, 29, 224, 0.25);
  --picap-shadow-heavy: rgba(194, 29, 224, 0.35);
  
  /* Transiciones */
  --picap-transition: all 0.3s ease;
  --picap-transition-fast: all 0.2s ease;
  --picap-transition-slow: all 0.5s ease;
  
  /* Gradientes */
  --picap-gradient-primary: linear-gradient(135deg, var(--picap-purple-dark) 0%, var(--picap-purple-light) 100%);
  --picap-gradient-light: linear-gradient(135deg, var(--picap-gray-light) 0%, var(--picap-gray-medium) 100%);
  --picap-gradient-soft: linear-gradient(135deg, var(--picap-purple-lighter) 0%, var(--picap-purple-lightest) 100%);
}

/* Aplicar colores globalmente */
body {
  background: var(--picap-gray-light);
  color: var(--picap-gray-darker);
}

/* Botones principales */
.btn-picap-primary {
  background: var(--picap-gradient-primary);
  color: var(--picap-white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--picap-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-picap-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--picap-shadow-medium);
  color: var(--picap-white);
}

.btn-picap-secondary {
  background: var(--picap-white);
  color: var(--picap-purple-dark);
  border: 2px solid var(--picap-purple-dark);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--picap-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-picap-secondary:hover {
  background: var(--picap-purple-dark);
  color: var(--picap-white);
  transform: translateY(-2px);
}

/* Cards */
.card-picap {
  background: var(--picap-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--picap-shadow);
  border: 1px solid var(--picap-gray-medium);
  transition: var(--picap-transition);
}

.card-picap:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--picap-shadow-medium);
}

/* Headers */
.header-picap {
  background: var(--picap-purple-dark);
  color: var(--picap-white);
  box-shadow: 0 2px 8px var(--picap-shadow);
}

/* Textos */
.text-picap-primary {
  color: var(--picap-purple-dark);
}

.text-picap-secondary {
  color: var(--picap-gray-dark);
}

.text-picap-light {
  color: var(--picap-gray-medium);
}

/* Fondos */
.bg-picap-primary {
  background: var(--picap-gradient-primary);
}

.bg-picap-light {
  background: var(--picap-gradient-light);
}

.bg-picap-soft {
  background: var(--picap-gradient-soft);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Consolidador Bancario Custom Styles */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

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

/* Navigation */
.navbar-brand {
  font-weight: bold;
  color: var(--dark-color) !important;
  font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

/* Sidebar */
.sidebar {
  min-height: calc(100vh - 56px);
  background-color: var(--light-color);
  border-right: 1px solid #dee2e6;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
  color: #495057;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin: 0.125rem 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: var(--primary-color);
  transform: translateX(5px);
}

.sidebar .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

/* Main Content */
.main-content {
  padding: 2rem;
  background-color: #f5f5f5;
  min-height: calc(100vh - 56px);
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  background-color: var(--light-color);
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  color: var(--dark-color);
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Stat Cards */
.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.5rem;
  border: none;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.stat-card .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card p {
  margin-bottom: 0;
  opacity: 0.9;
  font-weight: 500;
}

/* Buttons */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
}

.btn-success {
  background: linear-gradient(45deg, #28a745, #1e7e34);
  border: none;
}

.btn-info {
  background: linear-gradient(45deg, #17a2b8, #117a8b);
  border: none;
}

.btn-warning {
  background: linear-gradient(45deg, #ffc107, #d39e00);
  border: none;
  color: #212529;
}

.btn-danger {
  background: linear-gradient(45deg, #dc3545, #bd2130);
  border: none;
}

/* Tables */
.table {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
  background-color: var(--light-color);
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: linear-gradient(45deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(45deg, #f8d7da, #f1b0b7);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(45deg, #fff3cd, #ffeaa7);
  color: #856404;
}

.alert-info {
  background: linear-gradient(45deg, #d1ecf1, #bee5eb);
  color: #0c5460;
}

/* Forms */
.form-control {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  transform: translateY(-1px);
}

.form-select {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Badges */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
}

/* File Upload */
input[type="file"] {
  transition: all 0.3s ease;
}

input[type="file"]:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Progress Bars */
.progress {
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  transition: width 0.6s ease;
}

/* Modals */
.modal-content {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  background-color: var(--light-color);
}

/* Footer */
.footer {
  background-color: var(--light-color);
  border-top: 1px solid #dee2e6;
  padding: 1rem 0;
  margin-top: 2rem;
  color: var(--secondary-color);
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
  
  .stat-card h3 {
    font-size: 1.5rem;
  }
  
  .sidebar {
    min-height: auto;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Cross-browser compatibility fixes */
.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.5rem;
  border: none;
  position: relative;
  overflow: hidden;
  -webkit-filter: none;
  filter: none;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* User select compatibility */
.user-select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Text size adjust compatibility */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Forced color adjust compatibility */
.forced-color-adjust-none {
  -webkit-forced-color-adjust: none;
  forced-color-adjust: none;
}

/* Theme color meta tag for better browser support */

/* Print styles */
@media print {
  .sidebar, .navbar, .footer {
    display: none !important;
  }
  
  .main-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
