/* Sanctions List Search - Styles */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #1a1a2e;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

/* Search Form */
.search-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-group input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: #4a90d9; color: white; }
.btn-primary:hover { background: #3a7bc8; }

.btn-secondary { background: #e4e7eb; color: #555; }
.btn-secondary:hover { background: #d0d5dc; }

/* Results Section */
.results-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 25px;
}

.results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    text-align: left;
    padding: 14px 16px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.clickable-row:hover {
    background: #f8f9fa;
}

.clickable-row td:first-child {
    font-weight: 500;
    color: #2c5282;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-link {
    padding: 8px 14px;
    border-radius: 6px;
    background: #f0f2f5;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.page-link:hover { background: #e4e7eb; }

.page-link.active {
    background: #4a90d9;
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 20px;
    color: #333;
}

.modal-close {
    font-size: 28px;
    color: #888;
    text-decoration: none;
    line-height: 1;
}

.modal-close:hover { color: #555; }

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-body pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .results-table {
        font-size: 14px;
    }

    .results-table th, .results-table td {
        padding: 10px 12px;
    }
}