/* ==========================================
   IDSYNC ANALYTICS STYLES
   ========================================== */

.idsync-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.idsync-dashboard .card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.idsync-dashboard .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.idsync-dashboard .card h3 {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.idsync-dashboard .metric-value {
    display: block;
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

/* --- Conversion Rate Card --- */
.card-conversion {
    justify-content: center !important;
}

.card-conversion .metric-value {
    color: #0073aa;
}

.conversion-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

.conversion-detail .sep {
    color: #ccc;
}

/* --- Top Locations Card --- */
.card-locations {
    text-align: left !important;
    align-items: flex-start !important;
    padding: 24px 20px !important;
}

.card-locations h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 16px !important;
}

.locations-list {
    width: 100%;
}

.location-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
}

.location-row:last-child {
    margin-bottom: 0;
}

.loc-name {
    color: #555;
    font-weight: 500;
}

.loc-count {
    background: #0073aa;
    color: #fff;
    padding: 3px 11px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.no-data {
    text-align: center;
    color: #bbb;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    padding: 20px 0;
}

/* --- Notices --- */
.idsync-notice {
    padding: 15px 20px;
    background: #f0f0f1;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    color: #444;
    font-size: 14px;
    margin: 20px 0;
}

/* --- Submissions Table --- */
.idsync-submissions-wrapper {
    margin: 20px 0;
}

.idsync-export-bar {
    margin-bottom: 20px;
    text-align: right;
}

.idsync-table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.idsync-submissions-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background: #fff;
}

.idsync-submissions-table thead {
    background: #0073aa;
    color: #fff;
}

.idsync-submissions-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.idsync-submissions-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.idsync-submissions-table tbody tr:hover {
    background: #f9f9f9;
}

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

.idsync-export-bar .button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.idsync-export-bar .button:hover {
    background: #005a87;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .idsync-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .idsync-dashboard {
        grid-template-columns: 1fr;
    }
    
    .idsync-submissions-table th,
    .idsync-submissions-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}