/* Basic Reset & Global Styles */
:root {
  --primary-color: #0E5936;
  --primary-hover: #0A4128;
  --secondary-color: #167336;
  --tertiary-color: #114C59;
  --contrast-1: #BF4B21;
  --contrast-2: #F2B138;
  --text-light: #f4f4f4;
  --text-dark: #333;
  --background-light: #FFFFFF;
  --status-pending: #F2B138; /* Contraste 2 */
  --status-approved: #167336; /* Secundario */
  --status-rejected: #BF4B21; /* Contraste 1 */
  --status-placed: #0E5936; /* Primario */
  --status-canceled: #6c757d; /* Gris */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Use a simple layout for body */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f5f5f5;
}

.view-wrapper {
    transition: opacity 0.2s ease-in-out;
    width: 100%;
    min-height: 100vh;
}

.view-wrapper.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

#app-wrapper {
    background-color: #f9f9f9;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

#app-wrapper.is-hidden {
    display: none;
}

/* Asegurar que el header esté siempre fijo */
.main-header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#main-content {
    width: 100%;
    padding-top: 100px; /* Espacio para el header fijo */
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Container with max-width for content areas */
.container-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header estilos ya definidos en #app-wrapper */

.main-header .container-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 20px;
}

.main-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 15px;
}

.main-header .logo:hover {
    transform: scale(1.02);
    background: rgba(14, 89, 54, 0.05);
}

.main-header .logo img {
  height: 48px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: filter 0.2s ease;
}

.main-header .logo:hover img {
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.12));
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  background: rgba(14, 89, 54, 0.1);
  border-radius: 30px;
  padding: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(14, 89, 54, 0.15);
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: var(--tertiary-color);
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 14px 28px;
  border-radius: 22px;
  display: block;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: left 0.2s ease;
  z-index: -1;
  border-radius: 22px;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  left: 0;
}

.main-nav a:hover, 
.main-nav a.active {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(14, 89, 54, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(14, 89, 54, 0.2);
    font-size: 0.95rem;
}

.header-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--contrast-1));
    transition: left 0.2s ease;
    z-index: -1;
}

.header-actions .btn:hover::before {
    left: 0;
}

.header-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 89, 54, 0.3);
}

.mobile-menu-button {
    display: none;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    padding: 14px;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(14, 89, 54, 0.2);
    position: relative;
    overflow: hidden;
}

.mobile-menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--contrast-1));
    transition: left 0.2s ease;
    z-index: -1;
    border-radius: 50%;
}

.mobile-menu-button:hover::before {
    left: 0;
}

.mobile-menu-button:hover {
    transform: scale(1.05) rotate(15deg);
    box-shadow: 0 6px 20px rgba(14, 89, 54, 0.3);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 5rem 1rem;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-contrast {
    background-color: var(--contrast-2);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hero .btn-contrast:hover {
    background-color: #e0a830; /* Darker yellow */
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 4rem 1rem;
    background-color: #f9f9f9;
    width: 100%;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--tertiary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Footer */
.main-footer {
    background-color: var(--tertiary-color);
    color: var(--text-light);
    padding: 3rem 1rem;
    width: 100%;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--contrast-2);
}

/* Responsive */
@media (max-width: 820px) {
    .main-nav, .header-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
    
    .main-header .container-content {
        justify-content: space-between;
    }

    .main-nav.active {
        display: flex;
        width: 100%;
        order: 3;
        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, rgba(14, 89, 54, 0.95), rgba(22, 115, 54, 0.95));
        border-radius: 15px;
        padding: 15px;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active a {
        color: white;
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 5px;
    }

    .main-nav.active a:hover,
    .main-nav.active a.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(10px);
    }

    .header-actions.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
        order: 4;
        margin-top: 1.5rem;
    }

    #main-content {
        padding-top: 120px; /* Más espacio en móvil */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Dashboard view */
#dashboard-view {
    width: 100%;
}

/* General Utilities */
.hidden {
    display: none !important;
}

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    position: relative;
}

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

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

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

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

/* Login Container */
#login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
}

.login-box {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-box .logo {
    margin-bottom: 1.5rem;
}

.login-box .logo img {
    height: 60px;
    margin: 0 auto;
}

.login-box h2 {
    margin-bottom: 0.5rem;
    color: var(--tertiary-color);
    font-size: 1.8rem;
}

.login-box p {
    margin-bottom: 2rem;
    color: #666;
}

.login-form .input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-form .btn-login {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form .btn-login:hover {
    background-color: var(--secondary-color);
}

#login-message {
    margin-top: 1rem;
    color: var(--contrast-1);
    font-weight: 600;
    padding: 1rem;
    background-color: rgba(191, 75, 33, 0.1);
    border-radius: 5px;
}

/* App Header Modifications */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Solicitudes View */
#solicitudes-view {
    padding: 2rem 0;
    background-color: #f9f9f9;
    width: 100%;
}

#solicitudes-view .container {
    max-width: 100%;
    padding: 0 2rem;
}

#solicitudes-view h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

#solicitudes-table-container {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
    overflow-x: auto;
    width: 100%;
}

.solicitudes-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}

.solicitudes-table th, .solicitudes-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.solicitudes-table th {
    background-color: var(--tertiary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.status-badge.status-pendiente {
    background-color: var(--status-pending);
    color: var(--text-dark);
}

.status-badge.status-aprobada {
    background-color: var(--status-approved);
}

.status-badge.status-rechazada {
    background-color: var(--status-rejected);
}

.status-badge.status-colocada {
    background-color: var(--status-placed);
}

.status-badge.status-anulada {
    background-color: var(--status-canceled);
}

.btn-view-details {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view-details:hover {
    background-color: var(--primary-color);
}

/* Button Loader Styles */
.btn.loading {
    color: transparent !important; /* Hide button text */
    pointer-events: none; /* Disable clicks while loading */
    position: relative;
}

.btn.loading .loader {
    visibility: visible;
}

.loader {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Solicitudes Module Styles */
.solicitudes-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.solicitudes-controls .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Improved Table Action Buttons */
.btn-view-details, .btn-edit, .btn-delete {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view-details {
    background-color: var(--secondary-color);
    color: white;
}

.btn-view-details:hover {
    background-color: var(--primary-color);
}

.btn-edit {
    background-color: var(--contrast-2);
    color: var(--text-dark);
}

.btn-edit:hover {
    background-color: #d48b06;
}

.btn-delete {
    background-color: var(--contrast-1);
    color: white;
}

.btn-delete:hover {
    background-color: #9e3d19;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--contrast-2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0 0 8px 8px;
}

.modal-footer .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 89, 54, 0.1);
}

/* Delete Modal Specific Styles */
.delete-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid var(--contrast-1);
}

.delete-info p {
    margin: 0.5rem 0;
}

.warning-text {
    color: var(--contrast-1);
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(14, 89, 54, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 89, 54, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(14, 89, 54, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--contrast-1), #a53e1a);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(191, 75, 33, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #a53e1a, #8b2e0f);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(191, 75, 33, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(191, 75, 33, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Custom Alert Styles */
.alert-modal .modal-content {
    max-width: 400px;
}

.alert-content {
    border-radius: 8px;
    overflow: hidden;
}

.alert-header {
    text-align: center;
    padding: 1rem;
}

.alert-header.alert-success {
    background-color: var(--secondary-color);
}

.alert-header.alert-error {
    background-color: var(--contrast-1);
}

.alert-header.alert-warning {
    background-color: var(--contrast-2);
    color: var(--text-dark);
}

.alert-header.alert-info {
    background-color: var(--primary-color);
}

.alert-body {
    text-align: center;
    padding: 1.5rem;
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.alert-icon .fa-check-circle {
    color: var(--secondary-color);
}

.alert-icon .fa-exclamation-triangle {
    color: var(--contrast-1);
}

.alert-icon .fa-exclamation-circle {
    color: var(--contrast-2);
}

.alert-icon .fa-info-circle {
    color: var(--primary-color);
}

.alert-footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0 0 8px 8px;
}

.alert-footer .btn {
    min-width: 140px;
    padding: 0.8rem 2rem;
}

#alert-message {
    line-height: 1.5;
    white-space: pre-line;
}

/* Responsive design for solicitudes controls */
@media (max-width: 768px) {
    .solicitudes-controls {
        flex-direction: column;
    }
    
    .solicitudes-controls .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
    
    .btn-view-details, .btn-edit, .btn-delete {
        margin: 0.2rem 0;
        width: 100%;
        justify-content: center;
    }
    
    .alert-content {
        width: 90%;
    }
    
    .alert-footer .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Vista de solicitud de detalles */
#solicitud-detalles-view {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #f8f9fa;
}

#solicitud-detalles-view.active,
#solicitud-detalles-view[style*="display: block"] {
    display: block !important;
}

/* Solicitud Details View Styles */
.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    background: #f9f9f9;
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--primary-color);
    color: white;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 6.5rem;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.details-title {
    flex: 1;
    text-align: center;
    position: relative;
}

.details-title h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.details-title p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 400;
}

.details-actions {
    display: flex;
    gap: 1rem;
}

/* Estilos para botones de edición */
.details-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.details-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0a4d2e);
    color: white;
}

.details-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 89, 54, 0.3);
}

.details-actions .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.details-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.details-actions .btn-secondary {
    background: linear-gradient(135deg, var(--tertiary-color), #0a3d47);
    color: white;
}

.details-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(17, 76, 89, 0.3);
}

.hidden {
    display: none !important;
}

/* Estilos para modo edición */
.edit-mode .detail-card {
    border: 2px solid var(--primary-color);
    position: relative;
}

.edit-mode .detail-card::before {
    content: "EDITANDO";
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.detail-item.editing input,
.detail-item.editing select,
.detail-item.editing textarea {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.editing-input {
    background: white !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.detail-item.editing input:focus,
.detail-item.editing select:focus,
.detail-item.editing textarea:focus,
.editing-input:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(14, 89, 54, 0.1);
}

.detail-item.non-editable {
    opacity: 0.6;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
    position: relative;
}

.detail-item.non-editable::after {
    content: "🔒";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.7;
}

.details-content {
    padding: 2rem;
    max-width: 100%;
    overflow-x: auto;
    background: transparent;
    min-height: calc(100vh - 120px);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.detail-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    height: fit-content;
    position: relative;
}

.detail-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    margin: 0 0 1.5rem 0;
    color: var(--tertiary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f3f4;
}

.detail-card h3 .card-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.detail-item:hover {
    background: #f8f9fa;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 4px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
    min-width: 160px;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: var(--text-dark);
    flex: 2;
    text-align: right;
    word-break: break-word;
    font-size: 0.9rem;
}

.loading-section, .error-section {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    background: #ffffff;
    margin: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.loading-section i {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.error-section {
    color: #e74c3c;
}

.error-section i {
    color: #e74c3c;
}

.loading-section p, .error-section p {
    font-size: 1rem;
    margin: 1rem 0 0 0;
    font-weight: 500;
}

/* Responsive Design for Details View */
@media (max-width: 1400px) {
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .details-content {
        padding: 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .details-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
        position: relative;
    }
    
    .details-title {
        order: -1;
    }
    
    .details-content {
        padding: 1rem;
        min-height: calc(100vh - 160px);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
        padding: 0.75rem 0;
    }
    
    .detail-value {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .details-header {
        padding: 0.75rem;
    }
    
    .details-title h2 {
        font-size: 1.4rem;
    }
    
    .details-content {
        padding: 0.75rem;
    }
    
    .detail-card h3 {
        font-size: 1.1rem;
    }
    
    .detail-label, .detail-value {
        font-size: 0.9rem;
    }
}

/* Photo Viewer Styles */
.photo-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
    z-index: 1001;
    overflow-y: auto;
}

.photo-viewer-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.photo-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 6.5rem;
}



.photo-viewer-content {
    padding: 2rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.photo-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-container img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.photo-title {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Fullscreen Image Viewer */
.fullscreen-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.fullscreen-header {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-fullscreen {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

.fullscreen-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
    overflow: hidden;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-footer {
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Sección de solicitudes */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: var(--primary-color);
    border-radius: 8px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tabla de solicitudes */
#solicitudes-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0;
}

.table thead {
    background: var(--tertiary-color);
    color: white;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

.table th:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

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

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .text-center {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    font-size: 1rem;
}

.table .text-danger {
    color: #e74c3c;
    font-weight: 600;
}

/* Botones de acción en la tabla */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.action-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

.action-buttons .btn:hover {
    opacity: 0.9;
}

.action-buttons .btn-info {
    background: var(--secondary-color);
    color: white;
}

.action-buttons .btn-warning {
    background: var(--contrast-2);
    color: var(--text-dark);
}

.action-buttons .btn-danger {
    background: var(--contrast-1);
    color: white;
}

/* Estilos para grupos acordeón en tabla */
.group-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 2px solid var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.group-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.group-header .group-title {
    padding: 1rem 1.5rem;
    border: none;
    font-weight: 600;
}

.group-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.group-toggle {
    font-size: 0.9em;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    min-width: 16px;
}

.group-count {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: normal;
    margin-left: auto;
}

/* Contenido de grupos acordeón */
.group-item-visible {
    display: table-row;
    background: white;
    transition: all 0.3s ease;
}

.group-item-hidden {
    display: none;
}

.group-item {
    background: white;
    transition: background-color 0.2s ease;
}

.group-item:hover {
    background: #f8f9fa;
}

.group-item td {
    padding-left: 1.5rem;
    /* Eliminado el borde verde */
}

.group-item:hover td {
    border-left-color: var(--secondary-color);
}

/* Estados específicos para badges */
.status-badge.status-pendiente {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.status-badge.status-colocada {
    background: linear-gradient(135deg, #28a745, #20a745);
    color: white;
}

.status-badge.status-aprobado {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.status-badge.status-en-revisión {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.status-badge.status-rechazado {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
}

/* Badges de estado */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    border: 1px solid transparent;
}

.status-pendiente {
    background: var(--status-pending);
    color: var(--text-dark);
    border-color: var(--status-pending);
}

.status-en-proceso {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.status-aprobada {
    background: var(--status-approved);
    color: white;
    border-color: var(--status-approved);
}

.status-rechazada {
    background: var(--status-rejected);
    color: white;
    border-color: var(--status-rejected);
}

.status-anulada {
    background: var(--status-canceled);
    color: white;
    border-color: var(--status-canceled);
}

/* Vista de detalles de solicitud */
#solicitud-detalles-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f9f9f9;
    z-index: 1000;
    overflow-y: auto;
}

.details-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #f9f9f9;
    width: 100%;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    padding: 1.5rem 2rem;
    color: white;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.details-title h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-title p {
    margin: 0.5rem 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.loading-section,
.error-section {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 2rem;
    border: 1px solid #e0e0e0;
}

.loading-section i,
.error-section i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.details-content {
    background: transparent;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-card h3 {
    margin: 0 0 1rem 0;
    color: var(--tertiary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f3f4;
}

.card-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text-dark);
    text-align: right;
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive para vista de detalles */
@media (max-width: 768px) {
    .details-container {
        padding: 0;
    }
    
    .details-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
    }
    
    .details-content {
        padding: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .detail-label, .detail-value {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive para tabla y solicitudes */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    #solicitudes-view {
        padding: 1rem 0;
    }
    
    #solicitudes-view .container {
        padding: 0 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table th {
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        justify-content: center;
    }
    
    .status-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        min-width: 70px;
    }
    
    /* Ocultar algunas columnas en móviles muy pequeños */
    @media (max-width: 480px) {
        .table th:nth-child(6),
        .table td:nth-child(6) {
            display: none; /* Ocultar fecha */
        }
        
        .section-header h2 {
            font-size: 1.2rem;
        }
    }
}

/* Responsive for Photo Viewer */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .photo-viewer-content {
        padding: 1rem;
    }
    
    .photo-container {
        height: 200px;
    }
    
    .fullscreen-overlay {
        padding: 1rem;
    }
}


/* Modern Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: #f5f5f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: var(--primary-color);
}

/* Custom Alert Styles */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-alert-content {
    padding: 0;
}

.custom-alert-header {
    display: flex;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e9ecef;
}

.custom-alert-header i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.custom-alert-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.custom-alert-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-alert-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.custom-alert-body {
    padding: 12px 20px 16px;
    color: #495057;
    line-height: 1.5;
}

.custom-alert-success {
    border-left: 4px solid #28a745;
}

.custom-alert-success .custom-alert-header i {
    color: #28a745;
}

.custom-alert-error {
    border-left: 4px solid #dc3545;
}

.custom-alert-error .custom-alert-header i {
    color: #dc3545;
}

.custom-alert-warning {
    border-left: 4px solid #ffc107;
}

.custom-alert-warning .custom-alert-header i {
    color: #ffc107;
}

.custom-alert-info {
    border-left: 4px solid #17a2b8;
}

.custom-alert-info .custom-alert-header i {
    color: #17a2b8;
}

/* Custom Confirm Dialog Styles */
.custom-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-confirm.show {
    opacity: 1;
}

.custom-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.custom-confirm-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.custom-confirm.show .custom-confirm-content {
    transform: translate(-50%, -50%) scale(1);
}

.custom-confirm-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
}

.custom-confirm-header i {
    margin-right: 12px;
    font-size: 1.5rem;
    color: #ffc107;
}

.custom-confirm-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
}

.custom-confirm-body {
    padding: 16px 24px 24px;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.custom-confirm-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.custom-confirm-cancel,
.custom-confirm-ok {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.custom-confirm-cancel {
    background: #6c757d;
    color: white;
    opacity: 1;
    visibility: visible;
}

.custom-confirm-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
    opacity: 1;
    visibility: visible;
}

.custom-confirm-ok {
    background: var(--primary-color);
    color: white;
    opacity: 1;
    visibility: visible;
}

.custom-confirm-ok:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments for custom dialogs */
@media (max-width: 480px) {
    .custom-alert {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .custom-confirm-content {
        margin: 20px;
        min-width: auto;
        max-width: none;
        width: calc(100% - 40px);
    }

    .custom-confirm-actions {
        flex-direction: column;
    }

    .custom-confirm-cancel,
    .custom-confirm-ok {
        width: 100%;
        justify-content: center;
    }
}