/*
 * CoinScanX 
 * Version: 2.0
 */

/* Estilos para el botón de soporte integrado */
.support-container {
    max-width: 480px;
    margin: 15px auto 25px auto;
    padding: 15px;
    background-color: #fffdf7; /* Cambiado a crema */
    border: 1px solid #ffe0b2; /* Cambiado a naranja claro */
    border-radius: 12px;
    text-align: center;
}

.support-message {
    color: #333333; /* Cambiado a texto oscuro */
    font-size: 14px;
    margin-bottom: 12px;
}

.support-controls {
    position: relative;
    display: inline-block;
}

.support-button {
    background-color: #ff9933; /* Cambiado a naranja */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.support-button:hover {
    background-color: #ff6600; /* Cambiado a naranja intenso */
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-icon svg {
    vertical-align: middle;
    stroke: white;
}

.support-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-options.expanded {
    max-height: 120px;
    margin-top: 10px;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: white !important; /* Asegura que el texto siempre sea blanco */
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.whatsapp-button {
    background-color: #25D366; /* Mantener color oficial de WhatsApp */
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Versión más oscura del verde de WhatsApp */
}

.telegram-button {
    background-color: #0088cc; /* Mantener color oficial de Telegram */
}

.telegram-button:hover {
    background-color: #0077b5; /* Versión más oscura del azul de Telegram */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.7); /* Cambiado a naranja */
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 153, 51, 0); /* Cambiado a naranja */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); /* Cambiado a naranja */
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

        .crypto-top-list-container {
            max-width: 100%;
            margin: 100px auto;
            background: #ffffff;
            border-radius: 16px !important; 
            box-shadow: 0 6px 20px rgba(255, 153, 51, 0.1); /* Cambiado a naranja */
            border: 1px solid #ffe0b2; /* Cambiado a naranja claro */
            position: relative;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
        }

        .crypto-top-header {
            padding: 25px;
            background: #fff8e1; /* Cambiado a fondo ámbar claro */
            text-align: center;
            border-bottom: 1px solid #ffe0b2; /* Cambiado a naranja claro */
            border-radius: 16px 16px 0 0 !important;
        }

            .crypto-form-icon {
                width: 48px;
                height: 48px;
                margin-bottom: 15px;
            }

        .crypto-top-title {
            color: #333333; /* Cambiado a texto oscuro */
            font-size: 22px;
            margin: 0 0 5px;
            font-weight: 600;
        }

        .crypto-top-subtitle {
            color: #6c757d;
            font-size: 14px;
            letter-spacing: 0.5px;
        }

        .crypto-top-body {
            padding: 20px;
        }

        .crypto-table-responsive {
            width: 100%;
            overflow-x: auto;
        }

        .crypto-top-list-container table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
        }

        .crypto-top-list-container th {
            text-align: left;
            padding: 14px;
            font-size: 14px;
            font-weight: 500;
            color: #333333; /* Cambiado a texto oscuro */
            background: #fff8e1; /* Cambiado a fondo ámbar claro */
            border-bottom: 1px solid #ffe0b2; /* Cambiado a naranja claro */
        }

        .crypto-top-list-container td {
            padding: 14px;
            border-bottom: 1px solid #e6f4ff;
            vertical-align: middle;
            font-size: 13px;
        }

        .crypto-top-list-container tr:last-child td {
            border-bottom: none;
        }

        .top-coin-row:hover {
            background-color: #fffdf7; /* Cambiado a crema */
        }

        /* Estilos para las diferentes columnas */
        .rank-col {
            width: 10%;
            text-align: center;
        }

        .coin-col {
            width: 18%;
        }

        .inclusion-col {
            width: 13%;
            font-size: 12px;
            color: #4a5568;
        }

        .initial-price-col {
            width: 10%;
            color: #4a5568;
        }

        .max-change-col {
            width: 10%;
            font-weight: 600;
        }

        .price-col {
            width: 10%;
            font-weight: 500;
            color: #1a237e;
        }

        .potential-col {
            width: 14%;
            text-align: center;
        }

        /* Estilos para indicadores de precio */
        .price-up {
            color: #26b34b;
        }

        .price-down {
            color: #ff3650;
        }

        .price-neutral {
            color: #6c757d;
        }

        /* Estilos para la lista de observación */
        .watchlist-header td {
            background: #fffdf7; /* Cambiado a crema */
            padding: 10px 14px;
            text-align: center;
        }

        .watchlist-title {
            color: #333333; /* Cambiado a texto oscuro */
            font-size: 15px;
            font-weight: 500;
        }

        .watchlist-subtitle {
            color: #6c757d;
            font-size: 13px;
            font-weight: normal;
            margin-left: 5px;
        }

        .watchlist-row {
            background: #fffdf7; /* Cambiado a crema */
        }

        .watchlist-row:hover {
            background: #fff8e1; /* Cambiado a ámbar claro */
        }

        .watchlist-rank {
            background: #ffcc80 !important; /* Cambiado a naranja claro */
        }

        .watchlist-indicator {
            background-color: rgba(158, 158, 158, 0.15);
            color: #757575; /* Gris */
        }

        .rank-number {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            background: #ff9933; /* Cambiado a naranja */
            color: white;
            border-radius: 50%;
            font-size: 13px;
            font-weight: 600;
        }

        tr:first-child .rank-number {
            background: #ff6600; /* Cambiado a naranja más intenso */
        }

        .coin-symbol {
            font-weight: 600;
            font-size: 15px;
            color: #333333; /* Cambiado a texto oscuro */
        }

        .coin-name {
            font-size: 13px;
            color: #6c757d;
            margin-top: 3px;
        }

        .potential-indicator {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
        }

        .high-potential {
            background-color: rgba(76, 175, 80, 0.15);
            color: #4CAF50; /* Verde vibrante */
        }

        .medium-potential {
            background-color: rgba(3, 169, 244, 0.15);
            color: #03A9F4; /* Azul */
        }

        .low-potential {
            background-color: rgba(255, 87, 34, 0.15);
            color: #FF5722; /* Naranja intenso/rojo */
        }

        /* Estilos responsive mejorados */
        @media (max-width: 768px) {
            .crypto-top-list-container {
                margin: 100px auto;
            }
            
            .crypto-top-header {
                padding: 18px;
            }
            
            .crypto-top-title {
                font-size: 16px;
            }
            
            .crypto-top-body {
                padding: 15px;
            }
            
            .crypto-top-list-container th, 
            .crypto-top-list-container td {
                padding: 12px;
            }
            
            .coin-symbol {
                font-size: 14px;
            }
            
            .coin-name, 
            .potential-indicator {
                font-size: 12px;
            }
            
            .inclusion-col {
                font-size: 11px;
            }
            
            .rank-number {
                width: 26px;
                height: 26px;
                line-height: 26px;
                font-size: 12px;
            }
            
            .watchlist-title {
                font-size: 14px;
            }
            
            .watchlist-subtitle {
                font-size: 12px;
                display: block;
                margin-top: 3px;
                margin-left: 0;
            }
        }

        /* Modo de tabla responsive para pantallas muy pequeñas */
        @media (max-width: 550px) {
            .crypto-top-list-container table, 
            .crypto-top-list-container thead, 
            .crypto-top-list-container tbody, 
            .crypto-top-list-container th, 
            .crypto-top-list-container td, 
            .crypto-top-list-container tr {
                display: block;
            }
            
            .crypto-top-list-container thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            
            .crypto-top-list-container tr {
                background: #ffffff;
                padding: 12px 15px;
                margin-bottom: 0;
                position: relative;
            }
            
            .watchlist-row {
                background: #fafcff;
            }
            
            .watchlist-header {
                background: #f5f9ff;
                padding: 10px 15px;
            }
            
            .watchlist-header td {
                padding: 0;
                text-align: center;
            }
            
            .crypto-top-list-container tbody tr {
                border-bottom: 1px solid #e6f4ff;
            }
            
            .crypto-top-list-container tbody tr:last-child {
                border-bottom: none;
            }
            
            .crypto-top-list-container tbody tr:after {
                content: "";
                display: table;
                clear: both;
            }
            
            .crypto-top-list-container td {
                border: none;
                position: relative;
                padding: 6px 0;
                text-align: right;
                margin-top: 3px;
                margin-bottom: 3px;
            }
            
            .crypto-top-list-container td:before {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                left: 0;
                width: 45%;
                white-space: nowrap;
                font-weight: 500;
                font-size: 13px;
                color: #6c757d;
                content: attr(data-label);
            }
            
            .rank-col, .coin-col, .inclusion-col, 
            .initial-price-col, .max-change-col, .price-col, .potential-col {
                width: 100%;
                float: left;
                clear: both;
            }
            
            .coin-col {
                margin-bottom: 10px;
            }
            
            .coin-symbol, .coin-name {
                display: inline;
            }
            
            .coin-name {
                margin-left: 5px;
                color: #6c757d;
            }
            
            .coin-name:before {
                content: "(";
            }
            
            .coin-name:after {
                content: ")";
            }
            
            .price-col {
                font-weight: 600;
            }
            
            .potential-col {
                text-align: right;
                margin-top: 8px;
            }
        }

        /* Estilos para la alerta de mercado */
        .crypto-market-alert {
            display: flex;
            background-color: #fff8e1; /* Cambiado a fondo ámbar claro */
            border: 1px solid #ffe0b2; /* Cambiado a borde naranja claro */
            border-left: 4px solid #ff9933; /* Cambiado a borde izquierdo naranja */
            border-radius: 6px;
            padding: 16px;
            margin: 20px auto 30px auto;
            max-width: 100%;
            box-shadow: 0 2px 8px rgba(255, 153, 51, 0.05); /* Cambiada sombra a naranja */
        }

        .alert-icon {
            margin-right: 16px;
            display: flex;
            align-items: flex-start;
        }

        .alert-icon svg {
            min-width: 28px;
            stroke: #ff9933; /* Cambiado a naranja - IMPORTANTE: Cambia el color del ícono SVG */
        }

        .alert-content {
            flex: 1;
        }

        .alert-title {
            font-weight: 600;
            color: #333333; /* Cambiado a texto oscuro */
            margin-bottom: 8px;
            font-size: 16px;
        }

        .alert-message {
            font-size: 14px;
            color: #4a5568;
            line-height: 1.5;
        }
        /* Responsive para la alerta */
        @media (max-width: 768px) {
            .crypto-market-alert {
                flex-direction: column;
                padding: 14px;
            }
            
            .alert-icon {
                margin-right: 0;
                margin-bottom: 10px;
                justify-content: center;
            }
            
            .alert-title {
                text-align: center;
            }
        }

/* Estilos para la barra de condición del mercado */
.market-condition-container {
    max-width: 100%;
    margin: 25px auto 40px;
    background: #ffffff;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.1);
    border: 1px solid #ffe0b2;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.market-condition-title {
    text-align: center;
    margin-bottom: 5px;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
}

.market-condition-description {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.market-condition-stats {
    background-color: #fffdf7;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #4a5568;
}

.condition-percentage {
    font-weight: 600;
    color: #ff9933;
    font-size: 15px;
}

.condition-bar-container {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.condition-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffb347 50%, #4CAF50 100%);
}

.condition-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    padding: 0 2px;
    margin-bottom: 15px;
}

.market-condition-message {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .market-condition-container {
        padding: 15px;
        margin: 20px auto 30px;
    }
    
    .market-condition-title {
        font-size: 16px;
    }
    
    .market-condition-description {
        font-size: 13px;
    }
    
    .market-condition-message {
        font-size: 12px;
    }
}

            /* Contenedor del botón y el área colapsable */
            .grace-period-toggle-container {
                max-width: 100%;
                margin: 40px auto;
                position: relative;
            }
            
            /* Estilo del botón */
        .grace-period-button {
            background-color: #ff9933; /* Cambiado a naranja */
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 auto;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(255, 153, 51, 0.2); /* Cambiado a naranja */
        }
            
        .grace-period-button:hover {
            background-color: #ff6600; /* Cambiado a naranja intenso */
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(255, 153, 51, 0.25); /* Cambiado a naranja */
        }
            
        .button-icon {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .button-icon svg {
            vertical-align: middle;
            stroke: white;
        }
            
            .coin-counter {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background-color: rgba(255, 255, 255, 0.3);
                color: white;
                border-radius: 50%;
                width: 24px;
                height: 24px;
                font-size: 13px;
                margin-left: 5px;
            }
            
            /* Contenido colapsable (inicialmente oculto) */
            .grace-period-content {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.5s ease;
                margin-top: 0;
            }
            
            .grace-period-content.expanded {
                max-height: 24000px; /* Valor alto para asegurar que se muestre toda la tabla */
                margin-top: 20px;
            }
            
            /* Animación de pulso para el botón */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.7); /* Cambiado a naranja */
            }
            70% {
                box-shadow: 0 0 0 6px rgba(255, 153, 51, 0); /* Cambiado a naranja */
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); /* Cambiado a naranja */
            }
        }
            
            .pulse-animation {
                animation: pulse 2s infinite;
            }

                /* Estilos para la sección de período de gracia */
        .crypto-grace-period-container {
            max-width: 100%;
            margin: 40px auto;
            background: #ffffff;
            border-radius: 16px !important;
            box-shadow: 0 6px 20px rgba(255, 153, 51, 0.1); /* Cambiado a naranja */
            border: 1px solid #ffe0b2; /* Cambiado a naranja claro */
            position: relative;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
        }
                
                .crypto-grace-period-header {
            padding: 20px;
            background: #fff8e1; /* Cambiado a ámbar claro */
            text-align: center;
            border-bottom: 1px solid #ffe0b2; /* Cambiado a naranja claro */
            border-radius: 16px 16px 0 0 !important;
        }
                
                .crypto-grace-period-title {
            color: #333333; /* Cambiado a texto oscuro */
            font-size: 18px;
            margin: 0 0 5px;
            font-weight: 600;
        }
                
                .crypto-grace-period-subtitle {
                    color: #6c757d;
                    font-size: 14px;
                    margin: 0;
                }
                
                .crypto-grace-period-body {
                    padding: 20px;
                }
                
                .grace-period-row {
            background: #fffdf7; /* Cambiado a crema */
        }
                
               .grace-period-row:hover {
            background: #fff8e1; /* Cambiado a ámbar claro */
        }
                
        .grace-indicator {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 500;
            background-color: rgba(33, 150, 243, 0.15); /* Azul claro */
            color: #2196F3; /* Azul */
        }
                
                .grace-status-col {
                    text-align: center;
                    width: 15%;
                }
                
                /* Adaptaciones responsive */
                @media (max-width: 768px) {
                    .crypto-grace-period-container {
                        margin: 30px auto;
                    }
                    
                    .crypto-grace-period-title {
                        font-size: 16px;
                    }
                    
                    .crypto-grace-period-subtitle {
                        font-size: 13px;
                    }
                }
                
                @media (max-width: 550px) {
                    .crypto-grace-period-container table, 
                    .crypto-grace-period-container thead, 
                    .crypto-grace-period-container tbody, 
                    .crypto-grace-period-container th, 
                    .crypto-grace-period-container td, 
                    .crypto-grace-period-container tr {
                        display: block;
                    }
                    
                    .crypto-grace-period-container thead tr {
                        position: absolute;
                        top: -9999px;
                        left: -9999px;
                    }
                    
                    .crypto-grace-period-container tr {
                        background: #ffffff;
                        padding: 12px 15px;
                        margin-bottom: 0;
                        position: relative;
                    }
                    
                    .grace-period-row {
                        background: #fafeff;
                    }
                    
                    .crypto-grace-period-container tbody tr {
                        border-bottom: 1px solid #e6f4ff;
                    }
                    
                    .crypto-grace-period-container tbody tr:last-child {
                        border-bottom: none;
                    }
                    
                    .crypto-grace-period-container tbody tr:after {
                        content: "";
                        display: table;
                        clear: both;
                    }
                    
                    .crypto-grace-period-container td {
                        border: none;
                        position: relative;
                        padding: 6px 0;
                        text-align: right;
                        margin-top: 3px;
                        margin-bottom: 3px;
                    }
                    
                    .crypto-grace-period-container td:before {
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        left: 0;
                        width: 45%;
                        white-space: nowrap;
                        font-weight: 500;
                        font-size: 13px;
                        color: #6c757d;
                        content: attr(data-label);
                    }
                    
                    .grace-status-col {
                        text-align: right;
                    }
                    
                    .coin-col, .inclusion-col, 
                    .initial-price-col, .max-change-col, .price-col, .grace-status-col {
                        width: 100%;
                        float: left;
                        clear: both;
                    }
                    
                    .coin-symbol, .coin-name {
                        display: inline;
                    }
                    
                    .coin-name {
                        margin-left: 5px;
                        color: #6c757d;
                    }
                    
                    .coin-name:before {
                        content: "(";
                    }
                    
                    .coin-name:after {
                        content: ")";
                    }
                }

        .crypto-admin-wrapper {
            max-width: 100%;
            margin-right: 20px;
        }
        .crypto-admin-tabs {
            margin: 15px 0;
            border-bottom: 1px solid #ccc;
            padding-bottom: 0;
        }
        .crypto-admin-tabs .nav-tab {
            font-size: 14px;
            margin-right: 5px;
        }
        .crypto-admin-search {
            margin: 15px 0;
            display: flex;
            align-items: center;
        }
        .crypto-admin-search form {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .crypto-admin-search input[type="text"] {
            width: 250px;
        }
        .crypto-admin-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .crypto-admin-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            text-align: left;
            padding: 12px;
            border-bottom: 2px solid #dee2e6;
        }
        .crypto-admin-table td {
            padding: 12px;
            border-bottom: 1px solid #e9ecef;
            vertical-align: middle;
        }
        .crypto-admin-table tr:hover {
            background-color: #f8f9fa;
        }
        .status-active {
            background-color: #d4edda;
            color: #155724;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        .status-expired {
            background-color: #f8d7da;
            color: #721c24;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        .status-warning {
            background-color: #fff3cd;
            color: #856404;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        .action-form {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
        }
        .time-bar-container {
            width: 100%;
            height: 6px;
            background-color: #e9ecef;
            border-radius: 3px;
            margin-top: 4px;
        }
        .time-bar {
            height: 100%;
            border-radius: 3px;
        }
        .time-active {
            background-color: #28a745;
        }
        .time-warning {
            background-color: #ffc107;
        }
        .time-expired {
            background-color: #dc3545;
        }
        .row-expired {
            background-color: rgba(248, 215, 218, 0.2);
        }
        .row-warning {
            background-color: rgba(255, 243, 205, 0.2);
        }
        .tablenav {
            display: flex;
            justify-content: flex-end;
            margin: 10px 0;
        }
        .no-items {
            padding: 20px;
            text-align: center;
            color: #6c757d;
            font-style: italic;
        }

        .crypto-admin-form {
            padding: 15px;
            background: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .status-label {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: bold;
        }
        .status-active {
            background: #d4edda;
            color: #155724;
        }
        .status-expired {
            background: #f8d7da;
            color: #721c24;
        }
        .crypto-admin-actions {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #ddd;
        }
        .crypto-admin-button {
            margin-right: 10px !important;
        }

            .crypto-admin-table {
                width: 100%;
                border-collapse: collapse;
                margin-top: 20px;
                background: white;
                box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            }
            .crypto-admin-table th {
                background: #f1f1f1;
                padding: 10px;
                text-align: left;
                border-bottom: 1px solid #ccc;
            }
            .crypto-admin-table td {
                padding: 10px;
                border-bottom: 1px solid #eee;
            }
            .crypto-admin-table tr:hover {
                background: #f9f9f9;
            }
            .status-set {
                color: green;
                font-weight: bold;
            }
            .status-unset {
                color: #999;
                font-style: italic;
            }
            .coin-symbol {
                font-weight: bold;
                font-size: 15px;
            }
            .coin-id {
                color: #666;
                font-size: 12px;
            }
            .manual-price-form {
                display: flex;
                align-items: center;
            }
            .manual-price-form input[type="number"] {
                width: 120px;
                margin-right: 10px;
            }
            .price-change {
                margin-top: 5px;
                font-size: 12px;
            }
            .price-change.positive {
                color: #26b34b;
            }
            .price-change.negative {
                color: #ff3650;
            }
            .price-change.neutral {
                color: #6c757d;
            }
            .tablenav {
                display: flex;
                justify-content: space-between;
                margin: 8px 0 16px;
                height: auto;
            }
            .tablenav .tablenav-pages {
                float: none;
                margin: 0;
                display: flex;
                align-items: center;
            }
            .tablenav .displaying-num {
                margin-right: 15px;
            }
            .paging-info {
                margin-right: 15px;
            }

    /* Estilos del contenedor principal */
.crypto-history-container {
    max-width: 100%;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.1); /* Cambiado a naranja */
    border: 1px solid #ffe0b2; /* Cambiado a naranja claro */
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

    /* Estilos del encabezado */
.crypto-history-header {
    padding: 20px;
    background: #fff8e1; /* Cambiado a ámbar claro */
    text-align: center;
    border-bottom: 1px solid #ffe0b2; /* Cambiado a naranja claro */
    border-radius: 16px 16px 0 0 !important;
}

.crypto-history-title {
    color: #333333; /* Cambiado a texto oscuro */
    font-size: 20px;
    margin: 0 0 5px;
    font-weight: 600;
}
    
    .crypto-history-subtitle {
        color: #6c757d;
        font-size: 14px;
        margin: 0;
    }

    /* Estilos del cuerpo */
    .crypto-history-body {
        padding: 15px;
    }
    
    /* Estilos del pie de página */
.crypto-history-footer {
    padding: 15px 20px;
    background: #fff8e1; /* Cambiado a ámbar claro */
    text-align: center;
    border-top: 1px solid #ffe0b2; /* Cambiado a naranja claro */
    border-radius: 0 0 16px 16px !important;
    font-size: 14px;
    color: #6c757d;
}

    /* Estilos de la tabla */
    .crypto-table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    .crypto-history-container table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        font-size: 13px;
    }

.crypto-history-container th {
    text-align: left;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333333; /* Cambiado a texto oscuro */
    background: #fff8e1; /* Cambiado a ámbar claro */
    border-bottom: 1px solid #ffe0b2; /* Cambiado a naranja claro */
    white-space: nowrap;
}

    .crypto-history-container td {
        padding: 10px 8px;
        border-bottom: 1px solid #e6f4ff;
        vertical-align: middle;
        font-size: 13px;
    }

    .crypto-history-container tr:last-child td {
        border-bottom: none;
    }
    
.history-coin-row:hover {
    background-color: #fffdf7; /* Cambiado a crema */
}
    
    /* Estilos para las diferentes columnas - más compacto */
    .coin-col {
        width: 8%;
    }
    
    .date-col, .date-exit-col, .date-remove-col {
        width: 10%;
        font-size: 12px;
        color: #4a5568;
    }
    
    .price-col {
        width: 8%;
        color: #1a237e;
    }
    
    .max-col {
        width: 8%;
        font-weight: 600;
    }
    
    .change-col {
        width: 18%;
    }
    
    .profit-amount-col {
        width: 8%;
        text-align: center;
    }
    
    .performance-col {
        width: 8%;
        text-align: center;
    }

/* Indicadores de rendimiento */
.performance-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.performance-excellent {
    background-color: rgba(76, 175, 80, 0.15); /* Verde más intenso */
    color: #4CAF50; /* Verde */
}

.performance-good {
    background-color: rgba(255, 193, 7, 0.15); /* Amarillo ámbar */
    color: #FFC107; /* Amarillo ámbar */
}

.performance-minimal {
    background-color: rgba(3, 169, 244, 0.15); /* Azul claro */
    color: #03A9F4; /* Azul claro */
}

.performance-low {
    background-color: rgba(255, 152, 0, 0.15); /* Naranja */
    color: #FF9800; /* Naranja */
}


.performance-negative {
    background-color: rgba(211, 47, 47, 0.15);
    color: #d32f2f; /* Rojo */
}  
    /* Estilos de ganancia */
    .profit-positive {
        color: #26b34b;
    }
    
    .profit-negative {
        color: #ff3650;
    }
    
    /* Estilo detallado para cambios */
    .change-details {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .change-price, .change-percentage {
        display: block;
    }
    
    .change-label {
        color: #000;
        font-weight: normal;
    }
    
    .change-value {
        font-weight: 500;
    }
    
    /* Estilo para montos de ganancia */
    .profit-amount {
        font-weight: 600;
        font-size: 13px;
    }
    
    /* Estilos adicionales para mejoras */
    .price-unchanged {
        font-style: italic;
        color: #6c757d;
        padding: 5px 0;
        font-size: 12px;
    }
    
    /* Otros estilos comunes */
    .price-up {
        color: #26b34b;
    }
    
    .price-down {
        color: #ff3650;
    }
    
    .coin-symbol {
        font-weight: 600;
        font-size: 13px;
        color: #1a237e;
        white-space: nowrap;
    }
    
    /* Estilos de paginación */
    .crypto-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        padding: 15px 0;
        border-top: 1px solid #e6f4ff;
    }
    
.page-nav {
    padding: 6px 12px;
    background: #fffdf7; /* Cambiado a crema */
    border: 1px solid #ffe0b2; /* Cambiado a naranja claro */
    border-radius: 5px;
    color: #ff9933; /* Cambiado a naranja */
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}
    
    .page-nav:hover {
    background: #fff8e1; /* Cambiado a ámbar claro */
}
    
    .page-nav.disabled {
        color: #d1d5db;
        cursor: not-allowed;
        background: #f8f9fa;
    }
    
    .page-numbers {
        display: flex;
        align-items: center;
        margin: 0 15px;
    }
    
    .page-number {
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        margin: 0 3px;
        border-radius: 5px;
        color: #4a5568;
        text-decoration: none;
        font-size: 13px;
        transition: all 0.2s ease;
    }
    
    .page-number:hover {
        background: #f8fdff;
    }
    
.page-number.current {
    background: #ff9933; /* Cambiado a naranja */
    color: white;
    font-weight: 600;
}
    
    .page-ellipsis {
        display: inline-block;
        width: 30px;
        text-align: center;
        font-size: 13px;
        color: #4a5568;
    }
    
    /* Nuevos estilos para búsqueda y filtros */
    .crypto-history-filters {
        padding: 20px;
        background: #fffdf7;
        border-bottom: 1px solid #ffe0b2;
    }
    
    .history-filter-form {
        margin: 0;
    }
    
    .filter-row {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .search-container {
        flex: 1;
        min-width: 250px;
    }
    
    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .search-icon {
    position: absolute;
    right: 15px; /* Cambiado de left a right */
    color: #6c757d;
    pointer-events: none;
}
    
    .search-input {
    width: 100%;
    padding: 15px 50px 15px 20px; /* Más padding vertical y ajustado para la lupa a la derecha */
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white; /* Fondo blanco explícito */
    height: 50px; /* Altura fija para hacer la barra más gruesa */
}
    
    .search-input:focus {
        outline: none;
        border-color: #ff9933;
        box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
    }
    
    .clear-search {
    position: absolute;
    right: 40px; /* Ajustado para estar antes de la lupa */
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
    
    .clear-search:hover {
        color: #ff9933;
    }
    
    .filter-container {
        min-width: 200px;
    }
    
    .performance-filter {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Estilos específicos para mejorar apariencia en Safari */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath fill=%27%236c757d%27 d=%27M6 8L0 0h12z%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    
    /* Altura fija para todos los navegadores */
    min-height: 45px;
    height: 45px;
    max-height: 45px;
    box-sizing: border-box;
}

/* Específico para Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .performance-filter {
            height: 45px !important;
            line-height: normal;
            padding-top: 14px;
            padding-bottom: 14px;
        }
    }
}

.performance-filter:focus {
    outline: none;
    border-color: #ff9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}
    
    .filter-actions {
        display: flex;
        gap: 10px;
    }
    
    .filter-button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 18px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .apply-filters {
        background: #ff9933;
        color: white;
    }
    
    .apply-filters:hover {
        background: #ff6600;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(255, 153, 51, 0.2);
    }
    
    .reset-filters {
        background: white;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }
    
    .reset-filters:hover {
        background: #f8f9fa;
        border-color: #6c757d;
        color: #495057;
    }
    
    .filter-info {
        margin-top: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .results-count {
        font-size: 14px;
        color: #6c757d;
    }
    
    .results-count strong {
        color: #ff9933;
    }
    
    .active-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        background: #fff8e1;
        border: 1px solid #ffe0b2;
        border-radius: 20px;
        font-size: 13px;
        color: #ff9933;
    }
    
    .filter-tag svg {
        width: 14px;
        height: 14px;
    }
    
    .no-results-message {
        text-align: center;
        padding: 60px 20px;
        color: #6c757d;
    }
    
    .no-results-icon {
        margin-bottom: 20px;
        color: #dee2e6;
    }
    
    .no-results-message h3 {
        color: #333;
        margin-bottom: 10px;
    }
    
    .no-results-message p {
        margin-bottom: 20px;
    }
    
    .no-results-message .filter-button {
        display: inline-flex;
        margin-top: 10px;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .crypto-history-container {
            margin: 15px auto;
        }
        
        .crypto-history-header,
        .crypto-history-footer {
            padding: 15px;
        }
        
        .crypto-history-title {
            font-size: 16px;
        }
        
        .crypto-history-subtitle {
            font-size: 13px;
        }
        
        .crypto-history-body {
            padding: 10px;
        }
        
        .crypto-history-container th, 
        .crypto-history-container td {
            padding: 10px 6px;
        }
        
        .coin-symbol {
            font-size: 13px;
        }
        
        .date-col, .date-exit-col, .date-remove-col {
            font-size: 11px;
        }
        
        .page-nav {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        .page-number {
            width: 28px;
            height: 28px;
            line-height: 28px;
            font-size: 12px;
        }
        
        .filter-row {
            flex-direction: column;
            gap: 10px;
        }
        
        .search-container,
        .filter-container {
            width: 100%;
            min-width: 100%;
        }
        
        .filter-actions {
            width: 100%;
            justify-content: stretch;
        }
        
        .filter-button {
            flex: 1;
            justify-content: center;
        }
        
        .filter-info {
            flex-direction: column;
            align-items: flex-start;
        }
    }
    
    /* Estilos para móviles */
    @media (max-width: 550px) {
        .crypto-history-container table, 
        .crypto-history-container thead, 
        .crypto-history-container tbody, 
        .crypto-history-container th, 
        .crypto-history-container td, 
        .crypto-history-container tr {
            display: block;
        }
        
        .crypto-history-container thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        
        .crypto-history-container tr {
            background: #ffffff;
            padding: 10px;
            margin-bottom: 0;
            position: relative;
        }
        
        .crypto-history-container tbody tr {
            border-bottom: 1px solid #e6f4ff;
        }
        
        .crypto-history-container tbody tr:last-child {
            border-bottom: none;
        }
        
        .crypto-history-container tbody tr:after {
            content: "";
            display: table;
            clear: both;
        }
        
        .crypto-history-container td {
            border: none;
            position: relative;
            padding: 4px 0;
            text-align: right;
            margin-top: 2px;
            margin-bottom: 2px;
        }
        
        .crypto-history-container td:before {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            width: 45%;
            white-space: nowrap;
            font-weight: 500;
            font-size: 12px;
            color: #6c757d;
            content: attr(data-label);
        }
        
        .date-remove-col, .coin-col, .date-col, .date-exit-col, 
        .price-col, .max-col, .change-col, .profit-amount-col, .performance-col {
            width: 100%;
            float: left;
            clear: both;
        }
        
        .change-col, .profit-amount-col {
            margin-top: 5px;
        }
    }
