:root {
    /* Dark Theme (Default) */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: rgba(35, 47, 71, 0.05);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --border: #e2e8f0;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-bg: rgba(0, 0, 0, 0.03);
    --chart-grid: rgba(0, 0, 0, 0.1);
}

.light-theme {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: rgba(241, 245, 249, 0.5);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --border: #e2e8f0;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-bg: rgba(0, 0, 0, 0.03);
    --chart-grid: rgba(0, 0, 0, 0.1);
}

.dark-theme {
    --bg-primary: #121828;
    --bg-secondary: #1a2236;
    --bg-tertiary: #232f47;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-primary: #3c8dfc;
    --accent-secondary: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --border: #2d3748;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --chart-grid: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1c2334; /* Darker blue color similar to the image */
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: background-color 0.3s;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    width: 32px;
    height: 32px;
    fill: #f5c518;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-sis {
    color: white;
}

.brand-tra {
    color: #f5c518;
}

.bolivia-flag {
    width: 20px;
    height: 13px;
    margin-left: 5px;
}

.nav-links {
    list-style: none;
    margin-top: 1rem;
}

.nav-links li {
    margin-bottom: 0.6rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    gap: 12px;
}

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

.nav-links li.active a {
    background-color: var(--accent-primary);
    color: #fff;
}

.nav-links i {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.icon-home, .icon-transfer, .icon-chart, .icon-calendar, .icon-tools, .icon-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-home::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
    background-size: contain;
}

.icon-transfer::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 21.5l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E");
    background-size: contain;
}

.icon-chart::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9 17H7V10H9V17M13 17H11V7H13V17M17 17H15V13H17V17M19 19H5V5H19V19.1M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z'/%3E%3C/svg%3E");
    background-size: contain;
}

.icon-calendar::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z'/%3E%3C/svg%3E");
    background-size: contain;
}

.icon-tools::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E");
    background-size: contain;
}

.icon-info::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* Theme Toggle */
.theme-switch {
    margin-top: auto;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 12px;
}

.theme-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-icon {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    transition: transform 0.3s;
}

#theme-toggle {
    display: none;
}

#theme-toggle:checked + .toggle-label .toggle-icon {
    transform: translateX(20px);
}

/* Main Content */
.content {
    flex: 1;
    padding: 0 1.5rem;
}

#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Header */
.header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.date-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.summary-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 4px solid transparent;
}

.summary-row .summary-card:nth-child(1) {
    border-left-color: #3c8dfc;
}

.summary-row .summary-card:nth-child(2) {
    border-left-color: #10b981;
}

.summary-row .summary-card:nth-child(3) {
    border-left-color: #f59e0b;
}

.summary-row .summary-card:nth-child(4) {
    border-left-color: #ef4444;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.card-content h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.stat {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.trend {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend span {
    color: var(--text-secondary);
    font-weight: 400;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--error);
}

/* Chart Cards */
.chart-card {
    height: 100%;
}

.chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-options {
    display: flex;
    gap: 0.5rem;
}

.option-btn {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background-color: var(--hover-bg);
}

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

.chart-container {
    height: 350px;
    position: relative;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead th {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

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

.status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.in-progress {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.failed {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.view-all-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

/* Alert List */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
}

.alert-item.high {
    border-left: 4px solid var(--error);
}

.alert-item.medium {
    border-left: 4px solid var(--warning);
}

.alert-item.low {
    border-left: 4px solid var(--info);
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.high .alert-icon {
    background-color: rgba(239, 68, 68, 0.15);
}

.high .alert-icon svg {
    fill: var(--error);
}

.medium .alert-icon {
    background-color: rgba(245, 158, 11, 0.15);
}

.medium .alert-icon svg {
    fill: var(--warning);
}

.low .alert-icon {
    background-color: rgba(59, 130, 246, 0.15);
}

.low .alert-icon svg {
    fill: var(--info);
}

.alert-icon svg {
    width: 20px;
    height: 20px;
}

.alert-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.alert-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Simulación de Transferencia Styles */
.simulacion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.simulacion-card {
    width: 100%;
}

.simulacion-form {
    padding: 1rem 0;
}

.simulacion-visual, .programar-visual {
    display: none;
}

.simulacion-visual {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.8);
    border-radius: 8px;
}

.breaker-name {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-top: 0.5rem;
    font-weight: 500;
}

#sim-porcentaje-carga, #sim-porcentaje-carga-destino {
    background-color: rgba(var(--bg-tertiary-rgb), 0.8);
    font-weight: bold;
    text-align: center;
    color: var(--accent-primary);
}

.porcentaje-options {
    margin-top: 10px;
}

.options-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.option {
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

.option1 {
    background-color: rgba(255, 152, 0, 0.15);
}

.option2 {
    background-color: rgba(76, 175, 80, 0.15);
}

.option strong {
    display: block;
    margin-bottom: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.percentage-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.percentage-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.percentage-btn {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.option1 .percentage-btn {
    border-color: #FF9800;
}

.option1 .percentage-btn:hover {
    background-color: #FF9800;
    color: white;
}

.option2 .percentage-btn {
    border-color: #4CAF50;
}

.option2 .percentage-btn:hover {
    background-color: #4CAF50;
    color: white;
}

/* Simulación de Transferencia Styles with Frames */
.simulacion-frames {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.simulacion-frame {
    flex: 1;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.frame-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Other Tab Placeholders */
.dashboard-wrapper {
    padding: 1rem 0;
}

.dashboard-wrapper.hidden {
    display: none;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.placeholder-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.placeholder-content p {
    color: var(--text-secondary);
}

/* Programar Transferencia Styles */
.programar-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.programar-card {
    width: 100%;
    border-left: 4px solid var(--accent-primary);
}

.programar-form {
    padding: 0.5rem 0;
}

.form-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-select, .form-input, .form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.form-select.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(60, 141, 252, 0.2);
}

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

.cancel-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: var(--hover-bg);
}

.edit-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

.view-btn:hover {
    background-color: rgba(16, 185, 129, 0.2);
}

.icon-edit:before, .icon-delete:before, .icon-view:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
}

.icon-edit:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233b82f6' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75H16v-2H5.5l3.75-3.75-1.75-1.75L2 15.5l5.5 6zm9-13l-1.5 1.5 3.5 3.5H8v2h10.5l-3.5 3.5 1.5 1.5 5.5-5.5-5.5-6z'/%3E%3C/svg%3E");
}

.icon-delete:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ef4444' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
}

.icon-view:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2310b981' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3C/svg%3E");
}

.pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.cancelled {
    background-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.export-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: var(--accent-primary);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.export-btn .icon-pdf {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.result-display {
    margin-top: 1.2rem;
    padding: 1.2rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 8px;
    display: none;
    border-left: 4px solid var(--accent-primary);
}

.result-display.show {
    display: block;
}

.result-display h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.result-item .value {
    font-size: 0.95rem;
    font-weight: 500;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--border);
    margin: 1rem 0;
}

.programar-visual {
    display: none;
}

.transfer-diagram {
    width: 100%;
    max-width: 500px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.substation-box {
    width: 40%;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.substation-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.source-station {
    border-left: 4px solid #10b981;
}

.target-station {
    border-left: 4px solid var(--accent-primary);
}

.station-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feeder-name {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.transfer-arrow {
    width: 15%;
    height: 4px;
    background-color: var(--accent-primary);
    position: relative;
}

.transfer-arrow:after {
    content: "";
    position: absolute;
    right: -8px;
    top: -6px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--accent-primary);
}

.icon-btn.pdf-btn {
    background-color: rgba(59, 130, 246, 0.15);
}

.icon-btn.pdf-btn:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.icon-pdf:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233b82f6' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z'/%3E%3C/svg%3E");
}

/* Información del Sistema Styles */
.informacion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.desarrollador-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.developer-profile {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

.developer-info-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 200px;
    flex-shrink: 0;
}

.developer-avatar {
    width: 150px;
    height: 150px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.developer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    width: 100%;
}

.developer-contact h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.developer-bio {
    flex: 1;
    padding: 1.5rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

@media (max-width: 768px) {
    .developer-profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .developer-info-left {
        width: 100%;
        align-items: center;
    }
    
    .developer-bio {
        width: 100%;
        margin-top: 1.5rem;
    }
}

.developer-avatar svg {
    width: 80px;
    height: 80px;
    fill: white;
}

.avatar-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.developer-avatar:hover .avatar-upload-overlay {
    opacity: 1;
}

.upload-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.developer-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.developer-role {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.developer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-location:before, .icon-phone:before, .icon-linkedin:before, .icon-email:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-location:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.icon-phone:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.icon-linkedin:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.68 1.68 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
}

.icon-email:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.developer-bio {
    padding: 1.5rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    margin-top: 1rem;
}

.developer-bio p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem;
}

.developer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.system-info {
    padding: 1.5rem;
}

.info-group {
    display: flex;
    margin-bottom: 1rem;
}

.info-label {
    width: 180px;
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    flex: 1;
    font-weight: 500;
}

.info-divider {
    height: 1px;
    background-color: var(--border);
    margin: 1.5rem 0;
}

.system-features {
    margin-bottom: 1.5rem;
}

.system-features h4, .system-requirements h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.system-features ul {
    padding-left: 1.5rem;
    line-height: 1.8;
}

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

.requirement-item {
    padding: 1rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.3);
    border-radius: 8px;
}

.requirement-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.requirement-value {
    font-size: 0.95rem;
}

/* Mantenimiento y Monitoreo styles */
.mantenimiento-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.alimentadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
    padding: 1rem 0;
}

.alimentador-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.alimentador-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alimentador-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.alimentador-title {
    font-weight: 600;
    font-size: 1rem;
}

.alimentador-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
}

.alimentador-status svg {
    width: 12px;
    height: 12px;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-maintenance {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

.status-alert {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-inactive {
    background-color: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.alimentador-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alimentador-subestacion {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.alimentador-load-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alimentador-load-bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.alimentador-load-progress {
    height: 100%;
    border-radius: 4px;
}

.alimentador-load-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.alimentador-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.action-btn.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.action-btn.secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .summary-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .summary-row {
        grid-template-columns: 1fr;
    }
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links li {
        margin-bottom: 0;
    }

    .nav-links a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .theme-switch {
        margin-top: 1rem;
    }

    .header-right {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .row {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .simulacion-frames {
        flex-direction: column;
    }
    
    .developer-profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .info-group {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 0.3rem;
    }
    
    .developer-contact {
        align-items: center;
    }
}

.sheets-section {
    padding: 1.5rem;
}

.sheets-container {
    margin-top: 1.5rem;
    min-height: 300px;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 8px;
    padding: 1rem;
    overflow: auto;
}

#sheets-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#sheets-container th, 
#sheets-container td {
    border: 1px solid var(--border);
    padding: 8px;
    text-align: left;
}

#sheets-container th {
    background-color: var(--bg-secondary);
    font-weight: 600;
}

.sheets-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-secondary);
}

.sheet-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.sheet-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 1;
}

.sheet-close-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

#sheets-container {
    position: relative;
    padding: 1rem;
    margin-top: 1rem;
}

.sheet-toolbar {
    padding: 10px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formula-bar {
    display: flex;
    gap: 10px;
}

.formula-bar input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: monospace;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.formula-bar button {
    padding: 6px 12px;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.formula-bar button:hover {
    background-color: var(--accent-secondary);
}

.toolbar-buttons {
    display: flex;
    gap: 5px;
}

.toolbar-btn {
    padding: 6px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: var(--text-primary);
}

.toolbar-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--accent-primary);
}

.handsontable {
    font-family: inherit;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.handsontable .htCore th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.handsontable .htCore td {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.handsontable .htCore tbody tr:hover {
    background-color: var(--hover-bg);
}

.handsontable .htCore tbody tr td.current {
    background-color: rgba(var(--accent-primary-rgb), 0.1);
}

.analisis-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.upload-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upload-label {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-label:hover {
    border-color: var(--accent-primary);
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
}

.upload-label i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.icon-excel:before {
    content: "";
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2310b981' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M18 20H6V4H13V9H18V20M12.35 16.18L14.77 19H13L11.13 16.97L9.23 19H7.5L9.93 16.18L7.5 13.36H9.23L11.13 15.4L13 13.36H14.77L12.35 16.18Z'/%3E%3C/svg%3E");
    background-size: contain;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 4px;
}

.file-name {
    flex: 1;
    font-size: 0.9rem;
}

.file-remove {
    cursor: pointer;
    color: var(--error);
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

#pdf-container {
    width: 100%;
    height: 100%;
}

#pdf-container canvas {
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .pdf-viewer {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .pdf-viewer {
        height: 400px;
    }
}

.sheets-section {
    padding: 1.5rem;
}

.sheets-container {
    margin-top: 1.5rem;
    min-height: 300px;
    background-color: rgba(var(--bg-tertiary-rgb), 0.5);
    border-radius: 8px;
    padding: 1rem;
    overflow: auto;
}

#sheets-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#sheets-container th, 
#sheets-container td {
    border: 1px solid var(--border);
    padding: 8px;
    text-align: left;
}

#sheets-container th {
    background-color: var(--bg-secondary);
    font-weight: 600;
}

.sheets-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-secondary);
}

.sheet-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.sheet-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 1;
}

.sheet-close-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

#sheets-container {
    position: relative;
    padding: 1rem;
    margin-top: 1rem;
}

.sheet-toolbar {
    padding: 10px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formula-bar {
    display: flex;
    gap: 10px;
}

.formula-bar input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: monospace;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.formula-bar button {
    padding: 6px 12px;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.formula-bar button:hover {
    background-color: var(--accent-secondary);
}

.toolbar-buttons {
    display: flex;
    gap: 5px;
}

.toolbar-btn {
    padding: 6px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: var(--text-primary);
}

.toolbar-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--accent-primary);
}

.handsontable {
    font-family: inherit;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.handsontable .htCore th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.handsontable .htCore td {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.handsontable .htCore tbody tr:hover {
    background-color: var(--hover-bg);
}

.handsontable .htCore tbody tr td.current {
    background-color: rgba(var(--accent-primary-rgb), 0.1);
}

.form-select option[style*="background-color"] {
    background-color: #FFEB3B !important;
    color: #000000 !important;
    font-weight: bold !important;
}

/* Modal Styles for Viewing Transfers */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-modal {
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.modal-body {
    padding: 1.5rem;
}

/* Action buttons styling refinements */
.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: var(--hover-bg);
}

.edit-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

.view-btn:hover {
    background-color: rgba(16, 185, 129, 0.2);
}

.pdf-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.resultados-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.resultados-content {
    min-height: 400px;
    padding: 1.5rem;
    background-color: rgba(var(--bg-tertiary-rgb), 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}