/* Lyxity Real-time Status - Matching Dashboard Style */
.lyxity-dashboard {
    background: #fff;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.lyxity-dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lyxity-dashboard-header h1 {
    color: #2c3338;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Logo */
.lyxity-dashboard-header .dashboard-logo {
    height: 56px;
    width: auto;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
}

/* Keep image aspect ratio */
.lyxity-dashboard-header .dashboard-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.lyxity-dashboard-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lyxity-dashboard-controls .button-primary {
    background: #b19044;
    border-color: #b19044;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 32px;
    margin: 0;
    padding: 0 16px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 6px;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.lyxity-dashboard-controls .button-primary:hover,
.lyxity-dashboard-controls .button-primary:focus {
    background: #9d7d3a;
    border-color: #9d7d3a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(177, 144, 68, 0.3);
}

.lyxity-dashboard-controls .button-primary .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.lyxity-auto-refresh-toggle {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #50575e;
    cursor: pointer;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    background: white;
    border: 1px solid #e9ecef;
}

.lyxity-auto-refresh-toggle:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.lyxity-auto-refresh-toggle input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
}

/* Status Grid - Dashboard Style */
.lyxity-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.lyxity-status-card {
    background: white;
    padding: 14px 16px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px; /* match dashboard card height */
}

.lyxity-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.lyxity-status-card.lyxity-loading {
    opacity: 0.7;
}

.lyxity-status-card.lyxity-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: lyxity-shimmer 1.5s infinite;
}

@keyframes lyxity-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Card Icons */
.lyxity-status-card .dashicons {
    font-size: 18px;
    margin-bottom: 8px;
    color: #b19044;
}

/* Card Content */
.lyxity-status-number {
    font-size: 26px;
    font-weight: 600;
    color: #2c3338;
    margin-bottom: 6px;
    line-height: 1.1;
}

.lyxity-status-label {
    font-size: 13px;
    color: #50575e;
    margin: 0 0 4px 0;
    font-weight: 500;
    line-height: 1.2;
}

.lyxity-status-description {
    display: none; /* Hide to reduce card height */
}

/* Card Border Colors */
.lyxity-status-card:nth-child(1) {
    border-left: 3px solid #b19044;
}

.lyxity-status-card:nth-child(2) {
    border-left: 3px solid #2271b1;
}

.lyxity-status-card:nth-child(3) {
    border-left: 3px solid #00a32a;
}

.lyxity-status-card:nth-child(4) {
    border-left: 3px solid #dc3545;
}

.lyxity-status-card:nth-child(5) {
    border-left: 3px solid #6f42c1;
}

.lyxity-status-card:nth-child(6) {
    border-left: 3px solid #17a2b8;
}

/* Requests Section - Dashboard Style */
.lyxity-requests-section {
    border-radius: 8px;
    margin-top: 30px;
    overflow: hidden;
}

.lyxity-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.lyxity-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3338;
    display: flex;
    align-items: center;
}

.lyxity-section-header h2::before {
    content: "\f160";
    font-family: dashicons;
    font-size: 20px;
    margin-right: 10px;
    color: #b19044;
}

.lyxity-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.lyxity-page-info {
    font-size: 13px;
    color: #50575e;
    padding: 0 12px;
    white-space: nowrap;
    font-weight: 500;
}

.lyxity-pagination-controls .button {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 2.15384615;
}

.lyxity-pagination-controls .button:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.lyxity-pagination-controls .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lyxity-pagination-controls .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #50575e;
}

/* Table Styles - Dashboard Style */
.lyxity-table-container {
    overflow-x: auto;
}

#rt-requests-table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

#rt-requests-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #2c3338;
    text-align: left;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#rt-requests-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    vertical-align: middle;
    color: #2c3338;
    line-height: 1.5;
}

#rt-requests-table tbody tr {
    transition: all 0.2s ease;
}

#rt-requests-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

#rt-requests-table tbody tr:nth-child(even) {
    background: #fdfdfe;
}

#rt-requests-table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

.lyxity-loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 30px;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

.lyxity-loading-indicator .spinner {
    float: none;
    margin: 0;
    width: 24px;
    height: 24px;
}

/* Status badges in table */
.lyxity-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.lyxity-status-badge.queued {
    background: #fcf3cd;
    color: #8a6914;
    border: 1px solid #f0e68c;
}

.lyxity-status-badge.processing {
    background: #d7ecff;
    color: #135e96;
    border: 1px solid #72aee6;
}

.lyxity-status-badge.completed {
    background: #d5e5d6;
    color: #2e5d2e;
    border: 1px solid #68de7c;
}

.lyxity-status-badge.failed {
    background: #f7d8da;
    color: #a02622;
    border: 1px solid #f56565;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lyxity-status-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 968px) {
    .lyxity-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .lyxity-dashboard-header h1 {
        text-align: center;
        font-size: 20px;
    }
    
    .lyxity-dashboard-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .lyxity-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .lyxity-section-header h2 {
        text-align: center;
        font-size: 13px;
    }
    
    .lyxity-pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 782px) {
    .lyxity-status-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lyxity-status-card {
        padding: 16px;
    }
    
    .lyxity-status-icon {
        width: 36px;
        height: 36px;
    }
    
    .lyxity-status-number {
        font-size: 20px;
    }
    
    #rt-requests-table th,
    #rt-requests-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .lyxity-status-badge {
        padding: 1px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .lyxity-dashboard-header h1 {
        font-size: 18px;
    }
    
    .lyxity-dashboard-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .lyxity-dashboard-controls .button-primary {
        width: 100%;
        justify-content: center;
    }
    
    .lyxity-auto-refresh-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .lyxity-pagination-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    #rt-requests-table {
        font-size: 11px;
    }
}
