@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

.fas{
    font-family: "Font Awesome 6 Free" !important;
}

/* Symbols page (commodities.blade.php) */
.hero-section {
    background: linear-gradient(135deg, #1a2a6c, #5d0000, #d79f26);
    background-size: 300% 300%;
    animation: gradient-shift 15s ease infinite;
    color: white;
    padding: 3rem 0;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.category-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.category-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
    font-weight: 600;
}
.category-card .card-body { padding: 1.25rem; }
.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.stat-number { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 0.5rem; }
.stat-label { color: #7f8c8d; font-weight: 500; }
.search-container { position: relative; margin-bottom: 2rem; }
#myInput, .commodities-search-input {
    border-radius: 2rem;
    padding-left: 1.5rem;
    padding-right: 3.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}
.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
}
.search-icon:hover { color: #6658ea; }
#accordionPanelsStayOpenExample .accordion-collapse.collapse:not(.show) {
    display: none;
}
#accordionPanelsStayOpenExample .accordion-collapse.collapse.show {
    display: block;
}
.accordion-button {
    pointer-events: auto;
}
.accordion-button::after {
    pointer-events: auto;
}
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #2c3e50;
    box-shadow: none;
}
.category-card .accordion-button:not(.collapsed),
.category-card .accordion-button:focus {
    color: #2c3e50;
    border-color: transparent;
    box-shadow: none;
}
.category-card .accordion-button:focus {
    box-shadow: none;
}
.category-card .form-check-input:focus {
    border-color: rgba(102, 88, 234, 0.5);
    box-shadow: none;
}
/* Tabla: sin línea gruesa, solo líneas finas grises entre filas */
#myTableCommodities {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: none;
    border: none !important;
    border-collapse: collapse;
}
#myTableCommodities thead th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border: none !important;
    border-bottom: none !important;
    padding: 0.75rem 1rem;
}
#myTableCommodities thead tr {
    border-bottom: none !important;
}
#myTableCommodities tbody tr:first-child td {
    border-top: none !important;
}
#myTableCommodities thead th:nth-child(1),
#myTableCommodities thead th:nth-child(3),
#myTableCommodities thead th:nth-child(5),
#myTableCommodities thead th:nth-child(6),
#myTableCommodities thead th:nth-child(7) {
    text-align: center;
}
#myTableCommodities thead th:nth-child(2),
#myTableCommodities thead th:nth-child(4) {
    text-align: left;
}
#myTableCommodities tbody td {
    border: none;
    color: #4a5568;
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
#myTableCommodities tbody td:nth-child(1),
#myTableCommodities tbody td:nth-child(3),
#myTableCommodities tbody td:nth-child(5),
#myTableCommodities tbody td:nth-child(6),
#myTableCommodities tbody td:nth-child(7) {
    text-align: center;
}
#myTableCommodities tbody td:nth-child(2),
#myTableCommodities tbody td:nth-child(4) {
    text-align: left;
}
#myTableCommodities tbody tr {
    background-color: #ffffff;
}
#myTableCommodities tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}
#myTableCommodities tbody a {
    color: #4a5568;
    text-decoration: none;
}
#myTableCommodities tbody a:hover {
    color: #6658ea;
}
.symbol-code-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.copy-symbol-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}
.copy-symbol-btn:hover {
    color: #6658ea;
}
.copy-symbol-btn.copied {
    color: #10b981;
}
/* Anchos: NAME limitado para que AVAILABLE FROM no se parta */
#myTableCommodities thead th:nth-child(2),
#myTableCommodities tbody td:nth-child(2) {
    max-width: 160px;
}
#myTableCommodities tbody td:nth-child(2) {
    word-break: break-word;
}
/* Category: máximo 160px con salto de línea */
#myTableCommodities thead th:nth-child(3),
#myTableCommodities tbody td:nth-child(3) {
    max-width: 160px;
    white-space: normal;
}
/* Exchange similar a Category: más angosto y con salto de línea */
#myTableCommodities thead th:nth-child(4),
#myTableCommodities tbody td:nth-child(4) {
    max-width: 160px;
    white-space: normal;
}
.badge-category {
    background: #6658ea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
.form-check-label { cursor: pointer; }
/* Layout responsive: debajo de 1400px, filtros arriba y tabla abajo a 100% */
@media (max-width: 1399.98px) {
    .symbols-layout-row {
        align-items: stretch;
    }
    .symbols-filter-col,
    .symbols-layout-row > .col-12.col-md-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* Filtros: sin líneas entre ítems y checkbox igual que theme.bundle.css */
.category-card .list-group-item {
    border: none;
    border-bottom: none;
    padding: 0.5rem 0;
}
.category-card .list-group-item:not(:last-child) {
    border-bottom: none;
}
.category-card .list-group {
    border: none;
}
.category-card .form-check-input {
    padding: 9px;
    margin-right: 0.6rem !important;
}
.category-card .form-check-input[type=checkbox] {
    border-radius: 50rem;
}
.category-card .form-check-input:checked {
    background-color: #6658ea;
    border-color: #6658ea;
}
.category-card .form-check-input:checked[type=checkbox],
.category-card .form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.125' stroke-linecap='round' stroke-linejoin='round' d='M10.5.785 4.312 7.214 1.5 4.292'/%3E%3C/svg%3E");
}
.no-results-container { padding: 2rem; margin-top: 0 !important; }
.no-results-container i { display: block; color: #cbd5e1; }
.no-results-container h4 { color: #64748b; font-weight: 600; }
.no-results-container p { color: #94a3b8; max-width: 400px; margin: 0 auto 1rem; }

.filter-category, .filter-market, .filter-contract {
    background-color: #dce0f3 !important;
    border: none !important;
    margin-top: 0 !important;
}

.filter-category:focus, .filter-market:focus, .filter-contract:focus{
    border-color: #6b7280 !important;
    background-color: #dce0f3 !important;
    border: none !important;
}
.filter-category:checked, .filter-market:checked, .filter-contract:checked{
    background-color: #6658ea !important;
    border-color: #6658ea !important;
}
.filter-category:checked:focus, .filter-market:checked:focus, .filter-contract:checked:focus{
    box-shadow: none !important;
}

.table>:not(:first-child) {
    border-top: none !important;
}

/* No-results form (request index) */
.no-results-container {
    padding: 3rem 2rem;
    margin-top: 0 !important;
    text-align: center;
    background: #ffffff;
}

.no-results-icon {
    margin-bottom: 1.5rem;
    color: #6c757d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-results-icon svg {
    width: 64px;
    height: 64px;
}

.no-results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
}

.no-results-description {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.request-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
    font-size: 0.95rem;
}

.form-label .required {
    color: #dc3545;
}

/* Uptime cell: 98/100 + 98.0% */
.uptime-cell {
    display: block;
    text-align: center;
}
.uptime-fraction {
    font-size: 1.1rem;
}
.uptime-percent {
    font-size: 0.8rem;
}

.form-control-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control-lg:focus {
    outline: none;
    border-color: #212529;
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.btn-block {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #212529;
    border: none;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.2);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

@media (max-width: 768px) {
    .no-results-container {
        padding: 2rem 1rem;
    }

    .no-results-title {
        font-size: 1.5rem;
    }

    .no-results-description {
        font-size: 0.9rem;
    }
}
