/* Hide elements (replaces inline style display: none) */
.hidden {
    display: none !important;
}

/* Text center utility (replaces inline style text-align: center) */
.text-center {
    text-align: center !important;
}

/* Muted text utility (replaces style color: #6c757d) */
.text-muted {
    color: #6c757d !important;
}

/* Disabled input utility (replaces style background-color: #f8f9fa; cursor: not-allowed) */
.input-disabled {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
}
/* Spinner para loading en tarjetas */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #ccc;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Modal de nuevo empleado */
.modal-title {
    margin-bottom: 1.5rem;
    color: #333;
}
.modal-btn-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.modal-btn-flex {
    flex: 1;
}
/* Ralcentro - Sistema de Gestión */

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

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

/* 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);
}

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

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

.modal-content.large {
    max-width: 800px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.company-info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.company-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-top: 2px;
    display: block;
}

/* Login Modal Logo Styles */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.company-logo-large {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px;
    width: 90px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: #2c3e50;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    background-color: #34495e;
    border-left-color: #3498db;
    color: white;
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 300;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.success::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-card.warning::before {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.stat-card.info::before {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0.5rem 0;
    line-height: 1;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 500;
    color: #28a745;
    background: #d4edda;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* Dashboard Layout */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Financial Metrics */
.financial-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.metric label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.amount {
    font-size: 1.25rem;
    font-weight: bold;
}

.amount.positive {
    color: #28a745;
}

.amount.negative {
    color: #dc3545;
}

.amount.warning {
    color: #ffc107;
}

/* Top Products */
.top-products {
    max-height: 300px;
    overflow-y: auto;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.product-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.product-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.product-sales {
    text-align: right;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.quick-actions h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Enhanced Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

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

.form-checkbox {
    width: auto;
    margin-right: 0.5rem;
}

/* Report Filters */
.report-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.report-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.report-placeholder {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.report-placeholder h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.report-placeholder ul {
    display: inline-block;
    text-align: left;
    margin: 1rem 0;
}

/* Settings Styles */
.settings-container {
    display: grid;
    gap: 2rem;
}

.settings-group {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.settings-group h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

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

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

/* Button Styles */

/* === RESTORED CLASSIC BUTTON STYLES === */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #f5f5f5;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn:hover {
    background: #e0e0e0;
    color: #111;
    border-color: #888;
}
.btn-primary {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}
.btn-primary:hover {
    background: #1741a6;
    border-color: #1741a6;
}
.btn-secondary {
    background: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}
.btn-secondary:hover {
    background: #495057;
    border-color: #495057;
}
.btn-danger {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}
.btn-danger:hover {
    background: #a71d2a;
    border-color: #a71d2a;
}
.btn-success {
    background: #28a745;
    color: #fff;
    border: 1px solid #28a745;
}
.btn-success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
}
.btn-sm {
    padding: 4px 10px;
    font-size: 0.85rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    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,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Order Items Styles */
.order-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.order-item select,
.order-item input {
    flex: 1;
    margin-bottom: 0;
}

.order-item input[name="quantity"] {
    flex: 0 0 100px;
}

/* Auth Styles */
.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

.status-processing {
    background-color: #cce5ff;
    color: #0056b3;
}

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

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

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

/* User Status Badges */
.status-active {
    background-color: #d4edda;
    color: #155724;
}

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

/* Hidden utility */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #cce5ff;
    border-color: #b8daff;
    color: #0056b3;
}

/* Enhanced table styles for low stock */
.low-stock-row {
    background-color: #fff3cd !important;
}

.low-stock {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Report styles */
.report-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.summary-item label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

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

.report-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.financial-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.financial-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.financial-card.positive {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.financial-card.negative {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.financial-card.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #333;
}

.financial-card h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.financial-card .amount {
    font-size: 1.75rem;
    font-weight: bold;
}

.profit-margin-display {
    text-align: center;
    margin-top: 2rem;
}

.margin-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.margin-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Admin Panel Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Enhanced Admin Dashboard with Sections */
.admin-section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.admin-section:nth-child(odd) {
    border-left-color: #667eea;
}

.admin-section:nth-child(even) {
    border-left-color: #764ba2;
}

.admin-section:nth-child(3n) {
    border-left-color: #f093fb;
}

.admin-section:nth-child(4n) {
    border-left-color: #f5576c;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.section-header h3 {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Featured cards for main departments */
.admin-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transform: scale(1.02);
    position: relative;
    overflow: hidden;
}

.admin-card.featured::before {
    content: '⭐';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.8;
}

.admin-card.featured h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.admin-card.featured .btn {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.admin-card.featured .btn:hover {
    background: #f0f2f5;
    transform: translateY(-1px);
}

.admin-card.featured .admin-stats {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Category color coding */
.admin-section:nth-child(1) .admin-card:not(.featured) {
    border-left: 3px solid #667eea;
}

.admin-section:nth-child(2) .admin-card:not(.featured) {
    border-left: 3px solid #764ba2;
}

.admin-section:nth-child(3) .admin-card:not(.featured) {
    border-left: 3px solid #f093fb;
}

.admin-section:nth-child(4) .admin-card:not(.featured) {
    border-left: 3px solid #f5576c;
}

/* Improved admin dashboard grid within sections */
.admin-section .admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

/* Admin subsections */
.admin-subsection {
    margin-bottom: 30px;
}

.admin-subsection h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Enhanced bulk actions */
.bulk-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bulk-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bulk-actions .btn .icon {
    font-size: 16px;
}

/* Enhanced status grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #667eea;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

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

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

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

.status-badge.status-info {
    background: #cce7ff;
    color: #0c5460;
}

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

/* Quick Actions Panel */
.quick-actions-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    color: white;
}

.quick-actions-panel h3 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    padding: 20px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.quick-action-btn .icon {
    font-size: 24px;
}

.quick-action-btn .text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .admin-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .admin-dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bulk-actions {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .quick-action-btn {
        padding: 15px 10px;
    }
}

.admin-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-stats {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-bulk-operations {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-bulk-operations h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.admin-system-status {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-system-status h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.status-item label {
    font-weight: 500;
    color: #495057;
}

/* Auto-generated field styles */
input[readonly].auto-generated {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.auto-generated-note {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ==================== PANTALLAS POR ROL ==================== */

.role-dashboard {
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dashboard-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
}

/* Stats Cards */
.dashboard-stats, .client-stats, .inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.admin {
    border-left-color: #9b59b6;
}

.stat-card.warning {
    border-left-color: #f39c12;
}

.stat-card.success {
    border-left-color: #27ae60;
}

.stat-card.info {
    border-left-color: #3498db;
}

.stat-card.primary {
    border-left-color: #2c3e50;
}

.stat-icon {
    font-size: 3em;
    margin-right: 20px;
    opacity: 0.8;
}

.stat-content h3 {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    margin: 5px 0 0 0;
    color: #2c3e50;
}

/* Módulos de Administrador */
.admin-modules, .employee-modules {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.admin-module, .employee-module {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-module:hover, .employee-module:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.admin-module:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.admin-module:nth-child(2):hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.admin-module:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.admin-module:nth-child(3):hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.admin-module:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
}

.admin-module:nth-child(4):hover {
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.6);
}

.module-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.admin-module h3, .employee-module h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.admin-module p, .employee-module p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Información del Empleado */
.employee-info {
    margin-top: 20px;
}

.employee-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db;
}

.employee-avatar {
    font-size: 4em;
    margin-right: 25px;
    opacity: 0.8;
}

.employee-details h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.employee-details p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
}

/* Secciones de Gestión */
.suppliers-section, .clients-management, .inventory-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.suppliers-filters, .clients-controls, .inventory-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.suppliers-filters input, .clients-controls input, .inventory-controls input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
}

.suppliers-filters select, .clients-controls select, .inventory-controls select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    min-width: 150px;
}

/* Listas y Grids */
.suppliers-grid, .inventory-grid {
    margin-top: 20px;
}

.suppliers-list, .clients-list, .inventory-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.supplier-card, .client-card, .product-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.supplier-card:hover, .client-card:hover, .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.supplier-card h4, .client-card h4, .product-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.supplier-card p, .client-card p, .product-card p {
    margin: 5px 0;
    color: #7f8c8d;
}

.supplier-actions, .client-actions, .product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

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

.btn-delete:hover {
    background: #c0392b;
}

.btn-view {
    background: #27ae60;
    color: white;
}

.btn-view:hover {
    background: #229954;
}

/* Responsive Design para Pantallas de Rol */
@media (max-width: 768px) {
    .dashboard-stats, .client-stats, .inventory-stats {
        grid-template-columns: 1fr;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .suppliers-filters, .clients-controls, .inventory-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .suppliers-filters input, .clients-controls input, .inventory-controls input {
        min-width: auto;
    }
    
    .suppliers-list, .clients-list, .inventory-list {
        grid-template-columns: 1fr;
    }
    
    .employee-card {
        flex-direction: column;
        text-align: center;
    }
    
    .employee-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Estados de Stock */
.stock-low {
    border-left-color: #e74c3c !important;
}

.stock-medium {
    border-left-color: #f39c12 !important;
}

.stock-high {
    border-left-color: #27ae60 !important;
}

/* Badges de Estado */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

/* ==================== EMPLOYEE PAYROLL STYLES ==================== */

.payroll-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payroll-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #7f8c8d;
    font-weight: 500;
}

.tab-button:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #f8f9fa;
}

/* Bootstrap handles tab-content visibility - removed conflicting CSS */

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card.hourly {
    border-left-color: #e74c3c;
}

.category-card.daily {
    border-left-color: #f39c12;
}

.category-card.monthly {
    border-left-color: #27ae60;
}

.category-card.project {
    border-left-color: #9b59b6;
}

.category-card.commission {
    border-left-color: #1abc9c;
}

.category-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.category-card p {
    margin: 5px 0 15px 0;
    color: #7f8c8d;
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.hourly {
    background: #ffeaa7;
    color: #d63031;
}

.type-badge.daily {
    background: #ffeaa7;
    color: #e17055;
}

.type-badge.monthly {
    background: #d1f2eb;
    color: #00b894;
}

.type-badge.project {
    background: #e8daef;
    color: #8e44ad;
}

.type-badge.commission {
    background: #d5f4e6;
    color: #16a085;
}

/* Employee Lists */
.employees-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.employee-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.employee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.employee-card h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.employee-code {
    font-family: 'Courier New', monospace;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.employee-details {
    margin: 15px 0;
}

.employee-details p {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 0.95em;
}

.employee-salary {
    background: #e8f4f8;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.employee-salary strong {
    color: #2c3e50;
}

.employee-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Payroll Lists */
.payrolls-list {
    margin-top: 20px;
}

.payroll-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.payroll-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.payroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.payroll-employee {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
}

.payroll-period {
    color: #7f8c8d;
    font-size: 0.9em;
}

.payroll-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.payroll-detail {
    text-align: center;
}

.payroll-detail label {
    display: block;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payroll-detail .amount {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.payroll-total {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
}

.payroll-total .amount {
    font-size: 1.5em;
    font-weight: 700;
    color: #27ae60;
}

.payroll-status {
    margin-top: 15px;
    text-align: center;
}

.payroll-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Controls */
.categories-controls,
.employees-controls,
.payroll-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.categories-controls h3,
.employees-controls h3,
.payroll-controls h3 {
    margin: 0;
    color: #2c3e50;
    flex-shrink: 0;
}

/* Responsive for Payroll */
@media (max-width: 768px) {
    .payroll-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-button.active {
        border-left-color: #3498db;
        border-bottom-color: transparent;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .employees-list {
        grid-template-columns: 1fr;
    }
    
    .payroll-details {
        grid-template-columns: 1fr 1fr;
    }
    
    .categories-controls,
    .employees-controls,
    .payroll-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================== MARKETING DASHBOARD STYLES ==================== */

.marketing-tabs {
    margin-top: 20px;
}

.tab-navigation {
    display: flex;
    background: #ecf0f1;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #7f8c8d;
    white-space: nowrap;
    min-width: 120px;
}

.tab-btn.active,
.tab-btn:hover {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Bootstrap handles tab-content visibility - removed conflicting CSS */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Marketing Statistics */
.marketing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

/* ==================== DEPARTMENTS STYLES ==================== */

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.department-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.department-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.department-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.department-header h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.department-actions {
    display: flex;
    gap: 5px;
}

.department-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
}

.department-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #95a5a6;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.stat-value.active {
    color: #27ae60;
}

.stat-value.inactive {
    color: #e74c3c;
}

.department-footer {
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.department-footer small {
    color: #95a5a6;
    font-size: 12px;
}

/* ==================== MANAGERS STYLES ==================== */

.managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.manager-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #9b59b6;
}

.manager-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.manager-info h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.manager-level {
    background: #9b59b6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manager-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.manager-footer {
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

/* ==================== CAMPAIGNS STYLES ==================== */

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.campaign-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #e74c3c;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.campaign-header h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.campaign-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-status.planificada {
    background: #f39c12;
    color: white;
}

.campaign-status.activa {
    background: #27ae60;
    color: white;
}

.campaign-status.pausada {
    background: #95a5a6;
    color: white;
}

.campaign-status.completada {
    background: #3498db;
    color: white;
}

.campaign-status.cancelada {
    background: #e74c3c;
    color: white;
}

.campaign-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.5;
}

.campaign-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.campaign-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.campaign-progress {
    margin-bottom: 15px;
}

.progress-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
}

.campaign-dates {
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

.campaign-dates small {
    color: #95a5a6;
    font-size: 12px;
}

.campaign-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ==================== FORM STYLES ==================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    margin-top: 20px;
}

/* ==================== GENERAL GRID STYLES ==================== */

.advertisements-grid,
.content-grid,
.ideas-grid,
.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ==================== NO DATA MESSAGES ==================== */

.no-data {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        min-width: 100px;
        font-size: 12px;
    }
    
    .marketing-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .departments-grid,
    .managers-grid,
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .campaign-details {
        grid-template-columns: 1fr;
    }
    
    .campaign-metrics {
        grid-template-columns: 1fr;
    }
    
    .department-stats {
        grid-template-columns: 1fr;
    }
    
    .campaign-actions,
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    
    .modal-content.large {
        max-width: 95%;
        margin: 10px;
    }
    
    .tab-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ====================== HR MANAGEMENT STYLES ====================== */

/* HR Dashboard */
.hr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hr-management {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* HR Tabs */
.hr-tabs {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 20px;
    border-bottom: 1px solid #e1e5e9;
    flex-wrap: wrap;
    gap: 5px;
}

.hr-tabs .tab-button {
    padding: 15px 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    opacity: 0.8;
    white-space: nowrap;
}

.hr-tabs .tab-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.hr-tabs .tab-button.active {
    background: white;
    color: #667eea;
    opacity: 1;
    font-weight: 600;
}

/* HR Tab Content */
.hr-tab-content {
    display: none;
    padding: 25px;
    min-height: 400px;
}

.hr-tab-content.active {
    display: block;
}

/* HR Controls */
.hr-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.hr-controls input[type="text"],
.hr-controls select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.hr-controls input[type="text"]:focus,
.hr-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* HR List */
.hr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* HR Cards */
.hr-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.hr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hr-card-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.hr-card-actions {
    display: flex;
    gap: 8px;
}

.hr-card-content p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.hr-card-content strong {
    color: #555;
    font-weight: 600;
}

/* HR Meta Information */
.hr-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.hr-meta .date {
    font-size: 12px;
    color: #888;
}

/* Status Badges for HR */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.inactive {
    background: #fee;
    color: #d32f2f;
}

.status-badge.open {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.in-progress {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.closed {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge.aplicado {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.revision {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.entrevista {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.oferta {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge.contratado {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.rechazado {
    background: #ffebee;
    color: #c62828;
}

.status-badge.programado {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.en-progreso {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.completado {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.cancelado {
    background: #ffebee;
    color: #c62828;
}

.status-badge.pendiente {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.aprobado {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.rechazado {
    background: #ffebee;
    color: #c62828;
}

/* HR Form Specific Styles */
#hrManagementDashboard .form-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 5px;
}

#hrManagementDashboard .form-group input,
#hrManagementDashboard .form-group select,
#hrManagementDashboard .form-group textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#hrManagementDashboard .form-group input:focus,
#hrManagementDashboard .form-group select:focus,
#hrManagementDashboard .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* HR Specific Icons */
.hr-card-header h3::before {
    margin-right: 8px;
    font-size: 16px;
}

.hr-card[data-type="department"] .hr-card-header h3::before {
    content: '🏢';
}

.hr-card[data-type="manager"] .hr-card-header h3::before {
    content: '👔';
}

.hr-card[data-type="position"] .hr-card-header h3::before {
    content: '📋';
}

.hr-card[data-type="recruitment"] .hr-card-header h3::before {
    content: '👤';
}

.hr-card[data-type="training"] .hr-card-header h3::before {
    content: '🎓';
}

.hr-card[data-type="benefit"] .hr-card-header h3::before {
    content: '🎁';
}

.hr-card[data-type="leave"] .hr-card-header h3::before {
    content: '📅';
}

/* HR Empty State */
.hr-list .no-data {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* HR Responsive Design */
@media (max-width: 768px) {
    .hr-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .hr-tabs {
        padding: 0 15px;
        justify-content: center;
    }
    
    .hr-tabs .tab-button {
        padding: 12px 15px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .hr-tab-content {
        padding: 20px 15px;
    }
    
    .hr-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hr-controls input,
    .hr-controls select {
        min-width: auto;
        width: 100%;
    }
    
    .hr-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hr-card {
        padding: 15px;
    }
    
    .hr-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hr-card-actions {
        align-self: flex-end;
    }
    
    .hr-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hr-tabs {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .hr-tabs .tab-button {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 90px;
        flex: 1;
    }
    
    .hr-card-header h3 {
        font-size: 16px;
    }
    
    .hr-card-content p {
        font-size: 13px;
    }
}

/* HR Loading States */
.hr-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #888;
}

.hr-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* HR Notification Enhancements */
.notification.hr-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-left: 4px solid #2e7d32;
}

.notification.hr-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-left: 4px solid #c62828;
}

.notification.hr-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-left: 4px solid #ef6c00;
}

.notification.hr-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-left: 4px solid #1565c0;
}
