/* Hero Banner */
.jat-hero {
    background-color: #002147;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}
.jat-hero h2 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 2.2em;
}
.jat-hero p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Main Container & Disclaimer */
#jat-app-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.jat-disclaimer {
    background-color: #f8f9fa;
    border-left: 4px solid #bf0a30;
    padding: 15px;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 30px;
}

/* Search and Filter Controls */
.jat-controls-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.jat-search-row, .jat-action-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.jat-controls-container select, 
.jat-controls-container input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    min-width: 200px;
}
#jat-search-btn {
    background-color: #bf0a30;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}
#jat-search-btn:hover { 
    background-color: #9a0826; 
}

/* Grid & Cards */
.jat-summary-text {
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}
.jat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.jat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.jat-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.jat-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    background: #eee;
}
.jat-state-badge {
    display: inline-block;
    background-color: #002147;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 5px;
}
.jat-name {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
}
.jat-position {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    color: #777;
}
.jat-card-metrics {
    margin-bottom: 20px;
}
.jat-metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #444;
}
.jat-metric-row strong { 
    color: #111; 
}
.jat-btn-details {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #2c3e50; 
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}
.jat-btn-details:hover { 
    background-color: #1a252f; 
}

/* Pagination Controls */
.jat-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.jat-page-btn {
    background-color: #ffffff;
    border: 1px solid #002147;
    color: #002147;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.jat-page-btn:hover {
    background-color: #f0f4f8;
}
.jat-page-btn.active {
    background-color: #002147;
    color: #ffffff;
    border-color: #002147;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Modal Styles */
.jat-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,33,71,0.7);
}
.jat-modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.jat-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.jat-modal-close:hover, .jat-modal-close:focus {
    color: #bf0a30;
    text-decoration: none;
}
.jat-modal-section { 
    margin-bottom: 25px; 
}
.jat-modal-section h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #222;
}
.jat-modal-section ul {
    list-style-type: disc;
    padding-left: 20px;
}
.jat-modal-section ul li {
    margin-bottom: 8px;
}
.jat-modal-ruling {
    background: #f8f9fa;
    border-left: 4px solid #002147;
    padding: 15px;
    margin-top: 10px;
}