﻿/* Estilos para la sección de comisiones */
.commissions-section {
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 30px;
    margin-top: 20px;
}

.commissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

    .commissions-header h2 {
        color: #495057;
        margin: 0;
        font-size: 1.8em;
    }

.commissions-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.commissions-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.commission-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #667eea;
}

    .commission-stat-card .stat-value {
        font-size: 2.2em;
        font-weight: 700;
        color: #28a745;
        margin-bottom: 8px;
    }

    .commission-stat-card .stat-label {
        color: #6c757d;
        font-size: 15px;
        font-weight: 500;
    }

.commissions-info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

    .commissions-info-box h4 {
        color: #495057;
        margin-bottom: 15px;
        font-size: 1.2em;
    }

    .commissions-info-box ul {
        list-style: none;
        padding: 0;
        margin: 0 0 10px 0;
    }

    .commissions-info-box li {
        padding: 8px 0;
        font-size: 15px;
        color: #495057;
    }

.commissions-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.commission-header {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1.3fr 0.8fr;
    gap: 15px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.commission-item {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1.3fr 0.8fr;
    gap: 15px;
    padding: 18px 25px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .commission-item:hover {
        background-color: #f8f9fa;
    }

    .commission-item:last-child {
        border-bottom: none;
    }

    .commission-item.with-commission {
        background-color: #f0fff4;
    }

    .commission-item.without-commission {
        background-color: #fff5f5;
        opacity: 0.7;
    }

.commission-date {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.commission-exec {
    font-weight: 600;
    color: #495057;
}

.commission-amount {
    font-weight: 600;
    color: #667eea;
}

.commission-value {
    font-weight: 700;
    color: #28a745;
    font-size: 15px;
}

.commission-item.without-commission .commission-value {
    color: #dc3545;
    text-decoration: line-through;
}

.commission-id {
    color: #adb5bd;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

.commission-toggle-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .commission-toggle-btn.active {
        background: #28a745;
        color: white;
    }

        .commission-toggle-btn.active:hover {
            background: #218838;
            transform: scale(1.05);
        }

    .commission-toggle-btn:not(.active) {
        background: #dc3545;
        color: white;
    }

        .commission-toggle-btn:not(.active):hover {
            background: #c82333;
            transform: scale(1.05);
        }

.no-commissions {
    text-align: center;
    padding: 50px;
    color: #6c757d;
    font-style: italic;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .commission-header,
    .commission-item {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    .commission-date:nth-child(1),
    .commission-exec:nth-child(2),
    .commission-amount:nth-child(3) {
        grid-column: span 1;
    }

    .commission-value:nth-child(4),
    .commission-item > div:nth-child(5) {
        grid-column: span 1;
    }

    .commission-id:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .commissions-header {
        flex-direction: column;
        align-items: stretch;
    }

    .commissions-controls {
        justify-content: stretch;
        flex-direction: column;
    }

    .commission-header,
    .commission-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }

    .commission-header {
        display: none;
    }

    .commission-item > div::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
        color: #6c757d;
    }
}

﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

    .header h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
        font-weight: 300;
    }

.connection-status {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-connected {
    color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

.status-disconnected {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

.controls {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.control-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

.btn-secondary {
    background: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }

.btn-warning {
    background: #ffc107;
    color: #212529;
}

    .btn-warning:hover {
        background: #e0a800;
        transform: translateY(-2px);
    }

.btn-info {
    background: #17a2b8;
    color: white;
}

    .btn-info:hover {
        background: #138496;
        transform: translateY(-2px);
    }

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.date-input {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .date-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c757d;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.executives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 30px;
}

.executive-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

    .executive-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .executive-card.active {
        border-color: #667eea;
        background: linear-gradient(135deg, #f8f9ff 0%, #e3e7ff 100%);
    }

    .executive-card.over-budget {
        border-color: #e74c3c;
        background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    }

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.executive-card.active .card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.executive-card.over-budget .card-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.executive-name {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
}

.executive-status {
    font-size: 0.9em;
    opacity: 0.9;
}

.toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

    .toggle-btn::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 21px;
        height: 21px;
        background: white;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

.executive-card.active .toggle-btn {
    background: rgba(255, 255, 255, 0.5);
}

    .executive-card.active .toggle-btn::after {
        transform: translateX(25px);
    }

.card-body {
    padding: 20px;
}

.budget-section {
    margin-bottom: 20px;
}

.budget-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.budget-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

    .budget-input:focus {
        outline: none;
        border-color: #667eea;
    }

.budget-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

    .budget-row:last-child {
        margin-bottom: 0;
        font-weight: 600;
        border-top: 1px solid #dee2e6;
        padding-top: 8px;
    }

.amount {
    font-weight: 600;
}

    .amount.positive {
        color: #28a745;
    }

    .amount.negative {
        color: #e74c3c;
    }

.expenses-section h4 {
    margin-bottom: 15px;
    color: #495057;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

    .expense-item:last-child {
        border-bottom: none;
    }

.date {
    color: #6c757d;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .close-btn:active {
        transform: scale(0.95);
    }

.modal-body {
    padding: 30px;
}

.executive-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

    .executive-list-item.active {
        background: linear-gradient(135deg, #f8f9ff 0%, #e3e7ff 100%);
        border-color: #667eea;
    }

.executive-info {
    flex: 1;
}

    .executive-info h4 {
        margin: 0 0 5px 0;
        color: #495057;
    }

    .executive-info p {
        margin: 0;
        font-size: 14px;
        color: #6c757d;
    }

/* Footer y transacciones */
.footer-section {
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 30px;
    margin-top: 20px;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

    .footer-header h2 {
        color: #495057;
        margin: 0;
        font-size: 1.5em;
    }

.footer-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.transaction-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 2fr auto auto;
    gap: 15px;
    align-items: center;
}

.form-input {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.transactions-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.transaction-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr auto;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .transaction-item:hover {
        background-color: #f8f9fa;
    }

    .transaction-item:last-child {
        border-bottom: none;
    }

.transaction-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr auto;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.transaction-exec {
    font-weight: 600;
    color: #495057;
}

.transaction-amount {
    font-weight: 600;
    color: #28a745;
}

.transaction-date {
    color: #6c757d;
    font-size: 14px;
}

.transaction-description {
    color: #6c757d;
    font-style: italic;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

    .delete-btn:hover {
        background: #c82333;
        transform: scale(1.05);
    }

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Sección de Reportes */
.reports-section {
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 30px;
    margin-top: 20px;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

    .reports-header h2 {
        color: #495057;
        margin: 0;
        font-size: 1.5em;
    }

.reports-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.reports-output {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.report-display {
    padding: 20px;
}

    .report-display pre {
        font-family: 'Courier New', Courier, monospace;
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
        white-space: pre-wrap;
        word-wrap: break-word;
        color: #495057;
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

.report-total {
    font-weight: bold;
    color: #dc3545;
    margin-top: 10px;
}

/* Sección de información del sistema */
.system-info {
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    padding: 20px 30px;
    margin-top: 20px;
}

.system-info-content {
    max-width: 800px;
    margin: 0 auto;
}

    .system-info-content h3 {
        color: #495057;
        margin-bottom: 15px;
        font-size: 1.2em;
    }

    .system-info-content p {
        margin: 8px 0;
        color: #6c757d;
        font-size: 14px;
    }

.system-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive design */
@media (max-width: 768px) {
    .executives-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .control-group {
        flex-direction: column;
        align-items: stretch;
    }

    .header h1 {
        font-size: 2em;
    }

    .connection-status {
        position: static;
        margin-top: 15px;
        text-align: center;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .transaction-item,
    .transaction-header {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

    .footer-header {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-controls {
        justify-content: stretch;
        flex-direction: column;
    }

    .reports-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-controls {
        justify-content: stretch;
        flex-direction: column;
    }

    .system-actions {
        flex-direction: column;
    }
}
/* AGREGAR estas líneas a tu styles.css existente */

.btn-success {
    background: #28a745;
    color: white;
}

    .btn-success:hover {
        background: #218838;
        transform: translateY(-2px);
    }

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* Estilos para la sección de pérdidas */
.losses-section {
    background: #fff5f5;
    border-top: 2px solid #f5c6cb;
    padding: 30px;
    margin-top: 20px;
}

.losses-header {
    margin-bottom: 25px;
}

    .losses-header h2 {
        color: #721c24;
        margin: 0 0 5px 0;
    }

.losses-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-losses {
    text-align: center;
    padding: 40px;
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
}

.losses-summary {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
}

    .losses-summary h4 {
        grid-column: 1 / -1;
        margin: 0 0 10px 0;
        color: #721c24;
    }

.loss-stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #dc3545;
}

.loss-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 5px;
}

.loss-stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.losses-by-executive {
    margin-top: 20px;
}

    .losses-by-executive h4 {
        margin-bottom: 15px;
        color: #495057;
    }

.executive-loss-card {
    background: #f8f9fa;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.executive-loss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

    .executive-loss-header strong {
        font-size: 1.2em;
        color: #495057;
    }

.executive-loss-total {
    font-size: 1.3em;
    font-weight: 700;
    color: #dc3545;
}

.executive-loss-details {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.executive-loss-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loss-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loss-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loss-amount {
    font-size: 1.1em;
    font-weight: 700;
    color: #dc3545;
}

.loss-date {
    font-size: 13px;
    color: #6c757d;
}

.loss-period {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.loss-item-info small {
    font-size: 11px;
    color: #adb5bd;
}

.btn-delete-loss {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .btn-delete-loss:hover {
        background: #c82333;
        transform: scale(1.05);
    }

.btn-danger {
    background: #dc3545;
    color: white;
}

    .btn-danger:hover {
        background: #c82333;
        transform: translateY(-2px);
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .losses-summary {
        grid-template-columns: 1fr;
    }

    .executive-loss-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .loss-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Bot Asistente Flotante */
.bot-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 30px;
    border: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bot-float-button:hover {
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }

.bot-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .bot-header h3 {
        margin: 0;
        font-size: 18px;
    }

.bot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .bot-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.bot-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 480px;
}

.bot-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.bot-summary-item {
    background: #f8f9fa;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    transition: all 0.3s ease;
}

    .bot-summary-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.bot-item-red {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.bot-item-yellow {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.bot-item-green {
    border-left-color: #28a745;
    background: #f0fff4;
}

.bot-item-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

    .bot-item-header strong {
        font-size: 14px;
        color: #212529;
    }

.bot-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding: 2px 0;
}

.bot-label {
    color: #6c757d;
    font-weight: 500;
}

.bot-value {
    color: #212529;
    font-weight: 600;
}

.bot-highlight {
    color: #667eea;
    font-weight: 700;
}

.bot-footer {
    background: #f8f9fa;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

    .bot-footer small {
        color: #6c757d;
        font-size: 11px;
    }

/* Responsive */
@media (max-width: 768px) {
    .bot-panel {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
    }

    .bot-float-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
