/* ==================== */
/* Search Section */
/* ==================== */
.search-section {
    background: var(--bg-white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

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

.search-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-stats {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.search-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==================== */
/* Stocks List Section */
/* ==================== */
.stocks-list-section {
    padding: 2rem 0 4rem;
    background: var(--bg-light);
}

.stocks-list-section .table-container {
    margin-bottom: 2rem;
}

.stocks-table th {
    font-size: 0.875rem;
    white-space: nowrap;
}

.stocks-table td {
    font-size: 0.875rem;
}

.stocks-table tbody tr {
    cursor: pointer;
}

.stocks-table tbody tr:hover {
    background: var(--bg-light);
}

.btn-detail {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==================== */
/* Pagination */
/* ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(.active):not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    padding: 0.5rem 1rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        min-width: 0;
    }
    
    .stocks-table {
        min-width: 1000px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
