/* frontend-style.css - Fixed with GO button and proper labels */
.adm-frontend-wrapper {
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.adm-card-header {
    padding: 15px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search and Filter wrapper with GO button */
.adm-search-filter-wrapper {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    align-items: flex-end;
}

.adm-search-box {
    flex: 1;
    min-width: 200px;
}

.adm-search-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.adm-filter-box {
    min-width: 180px;
}

.adm-filter-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.adm-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.adm-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Exchange filter styling */
.adm-exchange-filter {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.adm-exchange-filter:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.adm-exchange-filter:hover {
    border-color: #0073aa;
}

/* GO Button */
.adm-go-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adm-go-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.adm-go-btn:active {
    transform: translateY(0);
}

.adm-go-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading indicator */
.adm-loading {
    text-align: center;
    padding: 20px;
    color: #0073aa;
    font-weight: 600;
}

.adm-loading p {
    margin: 0;
}

.adm-table-container {
    overflow-x: auto;
    padding: 20px;
    position: relative;
}

.adm-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.adm-frontend-table thead tr {
    background-color: #000 !important;
}

.adm-frontend-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border: 1px solid #333;
    white-space: nowrap;
}

.adm-frontend-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.adm-frontend-table td a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.adm-frontend-table td a:hover {
    text-decoration: underline;
}

.adm-frontend-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.adm-frontend-table tbody tr:hover {
    background-color: #f0f0f0;
}

.adm-frontend-table tbody tr.hidden {
    display: none;
}

/* Highlight for search results */
.adm-frontend-table mark {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.adm-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.adm-pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.adm-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.adm-pagination a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Mobile Responsive - Vertical Layout */
@media screen and (max-width: 768px) {
    .adm-search-filter-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .adm-search-box,
    .adm-filter-box {
        width: 100%;
        min-width: auto;
    }
    
    .adm-go-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .adm-frontend-table {
        border: 0;
    }
    
    .adm-frontend-table thead {
        display: none;
    }
    
    .adm-frontend-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 2px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .adm-frontend-table tbody tr.hidden {
        display: none;
    }
    
    .adm-frontend-table tbody tr:nth-child(even) {
        background-color: #fff;
    }
    
    .adm-frontend-table td {
        display: block;
        text-align: left;
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 15px;
        position: relative;
        padding-left: 50%;
    }
    
    .adm-frontend-table td:last-child {
        border-bottom: none;
    }
    
    .adm-frontend-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
        color: #000;
    }
    
    .adm-card-header {
        text-align: center;
        font-size: 16px;
    }
    
    .adm-table-container {
        padding: 15px;
    }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .adm-search-filter-wrapper {
        gap: 10px;
    }
    
    .adm-search-box {
        flex: 2;
    }
    
    .adm-filter-box {
        flex: 1;
    }
    
    .adm-go-btn {
        flex: 0 0 auto;
    }
}

/* Desktop - Horizontal Layout */
@media screen and (min-width: 769px) {
    .adm-frontend-table {
        display: table;
    }
    
    .adm-frontend-table thead {
        display: table-header-group;
    }
    
    .adm-frontend-table tbody tr {
        display: table-row;
    }
    
    .adm-frontend-table tbody tr.hidden {
        display: none;
    }
    
    .adm-frontend-table td {
        display: table-cell;
    }
}

/* Print styles */
@media print {
    .adm-search-filter-wrapper,
    .adm-pagination {
        display: none;
    }
    
    .adm-frontend-table {
        font-size: 12px;
    }
    
    .adm-frontend-table td,
    .adm-frontend-table th {
        padding: 6px;
    }
}