:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    background-color: white;
    width: 250px;
    height: calc(100vh - 60px);
    position: fixed;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 1rem;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
}


/*STYLOS MODULO USUARIOS DR/*

/* Agregar al final de assets/css/style.css */

/* Badges para estados */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

/* Formularios de checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    margin-bottom: 0;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



/* ============ HEADER STYLES ============ */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    gap: 10px;
}

.brand-logo i {
    font-size: 1.5rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
}

.header-nav {
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.user-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar i {
    font-size: 1.5rem;
}

.user-name {
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

/* ============ SIDEBAR STYLES ============ */
.app-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 900;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.menu-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.menu-item.active .menu-link {
    background-color: #f0f7ff;
    color: #3498db;
    border-left-color: #3498db;
}

.menu-divider {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.system-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============ FOOTER STYLES ============ */
.app-footer {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-left: 250px;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 15px;
}

.footer-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3498db;
}

/* ============ MAIN CONTENT STYLES ============ */
.app-container {
    margin-left: 250px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    background-color: #f5f7fa;
    transition: margin-left 0.3s;
}

/* ============ RESPONSIVE STYLES ============ */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.show {
        transform: translateX(0);
    }
    
    .app-container {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .app-footer {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}




/* ============ LOGIN PAGE STYLES ============ */
.login-page {
    height: 100vh;
    display: flex;
    background-color: #f8f9fa;
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.login-card {
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.brand-slogan {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.login-form {
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.register-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.social-login {
    margin-top: 1.5rem;
}

.social-login p {
    margin-bottom: 1rem;
    position: relative;
    color: #95a5a6;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ecf0f1;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.google {
    background-color: #db4437;
}

.social-btn.facebook {
    background-color: #4267b2;
}

.social-btn.microsoft {
    background-color: #00a1f1;
}

.login-bg {
    flex: 1;
    background: url('../images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: none;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%);
}

.bg-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 2rem;
    width: 80%;
    max-width: 500px;
}

.bg-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bg-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.alert-danger {
    background-color: #fdecea;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-left: 4px solid #c62828;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #4a6baf;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE LOGIN ============ */
@media (min-width: 992px) {
    .login-bg {
        display: block;
    }
    
    .login-card {
        padding: 4rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password {
        margin-left: 0;
    }
}




.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.version-badge {
    position: absolute;
    top: -8px;
    right: -15px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    padding: 10px;
}

.hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #9ea2a7;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quick-access {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.nav-item {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #7f8c8d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
    transform: translateY(-2px);
}

.nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
   
}

.user-btn:hover {
    background-color: #f8f8f8;
}

.user-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #95a5a6;
    transition: transform 0.3s ease;
}

.user-btn:hover .dropdown-arrow {
    color: #3498db;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-lg img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.user-details h4 {
    margin: 0;
    font-size: 1rem;
}

.user-details p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
    color: #3498db;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #ecf0f1;
    margin: 5px 0;
}

.logout-btn {
    color: #e74c3c !important;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    margin-left: auto;
}

.badge-primary {
    background-color: #e1f0ff;
    color: #3498db;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    z-index: 1001;
}

/* ============ FOOTER PRO STYLES ============ */
.app-footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 0;
    margin-left: 250px;
    position: relative;
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: #3498db;
}

.footer-description {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-right {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    min-width: 150px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #bdc3c7;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.footer-badges .badge {
    font-size: 0.7rem;
    padding: 5px 10px;
}

.badge-success {
    background-color: #27ae60;
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
}

    /* Espacio arriba de la barra de búsqueda */
    div.dataTables_filter {
        margin-bottom: 20px !important;
    }

    /* Espacio debajo de la tabla y arriba de la paginación */
    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        margin-top: 20px !important;
    }

    .dt-buttons {
    margin-bottom: 20px !important;
    }

    /* Espacio general alrededor de la tabla */
    #tablaObras {
        margin-top: 15px;
        margin-bottom: 15px;
    }


/* Estilos para los botones de DataTables */
.dt-buttons .dt-button {
    color: white !important;
    background-color: #4CAF50 !important; /* Color base verde */
    border: none !important;
    padding: 8px 12px !important;
    margin: 0 5px 10px 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
}

/* Estilo para el botón de Excel */
.dt-buttons .buttons-excel {
    background-color: #026e00 !important; /* Verde */
}

/* Estilo para el botón de PDF */
.dt-buttons .buttons-pdf {
    background-color: #f44336 !important; /* Rojo */
}

/* Estilo para el botón de Imprimir */
.dt-buttons .buttons-print {
    background-color: #607d8b !important; /* Gris azulado */
}

/* Efecto hover para todos los botones */
.dt-buttons .dt-button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}    

/* Centrar los botones */
.dataTables_wrapper .dt-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Estilo para los botones */
.buttons-excel, .buttons-pdf, .buttons-print {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.buttons-excel:hover, .buttons-pdf:hover, .buttons-print:hover {
    background-color: #0b5ed7;
}

/* Animaciones para mensajes */
.alert-auto-dismiss {
    transition: all 0.5s ease-in-out;
}
.alert-hiding {
    opacity: 0;
    transform: translateY(-20px);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 0;
    overflow: hidden;
}
.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.5;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    margin-left: 0.5em;
}
.stock-low {
    color: #dc3545;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}


/*     <Estilos adicionales para Select2 */
.select2-container .select2-selection--single {
    height: 38px;
    padding: 6px 12px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}


@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ============ RESPONSIVE STYLES ============ */
@media (max-width: 1200px) {
    .app-footer {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .quick-access {
        display: none;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .user-info {
        display: none;
    }
    
    .version-badge {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


