/* ===================================
   TOT Results Detail Page CSS
   =================================== */

.results-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border: 1px solid #e8f4fd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(109,191,232,0.05);
}

.results-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6dbfe8;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-back-results {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6dbfe8;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    margin-bottom: 12px;
    align-self: flex-start;
}

.btn-back-results:hover {
    color: #1a3a5c;
    transform: translateX(-4px);
}

.results-title-main {
    font-size: 1.8rem;
    color: #1a3a5c;
    font-weight: 700;
    margin: 0;
}

/* Search bar and counter row */
.results-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-search-wrap {
    position: relative;
    max-width: 450px;
    width: 100%;
}

.results-search-wrap input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #d6eaf8;
    border-radius: 6px;
    font-size: 0.93rem;
    outline: none;
    background: #fdfeff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.results-search-wrap input:focus {
    border-color: #6dbfe8;
    box-shadow: 0 0 0 3px rgba(109,191,232,0.1);
}

.results-search-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6dbfe8;
    font-size: 0.95rem;
}

.results-count-badge {
    background: #e8f4fd;
    color: #1a3a5c;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Table Design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e8f4fd;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results-table th {
    background: #1a3a5c;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 15px 20px;
    font-size: 0.92rem;
}

.results-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e8f4fd;
    color: #444;
    vertical-align: middle;
}

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

.results-table tbody tr:nth-child(even) {
    background: #f8fbfe;
}

.results-table tbody tr:hover {
    background: #f0f8ff;
}

.result-title-cell {
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-download-pdf:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.no-results {
    text-align: center;
    padding: 30px !important;
    color: #777;
    font-style: italic;
}

@media (max-width: 768px) {
    .results-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .results-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .results-search-wrap {
        max-width: 100%;
    }
    .results-table th, .results-table td {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
    .btn-download-pdf {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
