/* General styles */
.ag-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.ag-checkin-note {
    color: #2f855a;
    font-weight: 500;
    margin-top: 0.5rem;
}

#ag-status {
    margin-top: 0.5rem;
}

/* Popup styles */
.ag-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ag-popup-content {
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    max-width: 800px;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Ensure emoji rendering */
.emoji {
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    display: inline-block;
}

/* Responsive table adjustments */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    font-family: 'Inter', sans-serif;
}

th.sticky {
    position: sticky;
    left: 0;
    z-index: 1;
}

/* Override WordPress admin styles for consistency */
.wp-list-table {
    border: none;
}

.wp-list-table thead th {
    background: transparent;
}

/* Button styles */
.button {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #e5e7eb;
}

/* Specific page styles */
.ag-summary-cards .ag-card {
    transition: transform 0.2s;
}

.ag-summary-cards .ag-card:hover {
    transform: translateY(-2px);
}

.ag-checkins-table th,
.ag-checkins-table td {
    padding: 1rem;
}

/* Form styles */
.ag-form input,
.ag-form select {
    font-family: 'Inter', sans-serif;
}

.ag-form button {
    font-family: 'Inter', sans-serif;
}

table.fixed {
    position: relative;
}
