/* Dropdown menus */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 0;
}

.dropdown-menu a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.aysa-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.aysa-dropdown-content a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.aysa-dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Action button styling */
.aysa-action-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
}

.aysa-action-btn:hover {
    background-color: #e9ecef;
}

.aysa-action-dropdown {
    position: relative;
    display: inline-block;
}

/* Spinner styling */
.spinner {
    background: url(../images/spinner.gif) no-repeat;
    background-size: 20px 20px;
    display: none;
    float: right;
    opacity: 0.7;
    filter: alpha(opacity=70);
    width: 20px;
    height: 20px;
    margin: 0 5px 0;
}

.spinner.is-active {
    display: inline-block;
}

/* Category Select Dropdown */
.category-select-dropdown a {
    cursor: pointer;
}

/* Table Controls */
.aysa-table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.aysa-search-container {
    display: flex;
    align-items: center;
}

.aysa-search-input {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.aysa-search-btn, 
.aysa-filter-btn, 
.aysa-export-btn,
.aysa-refresh-btn {
    padding: 8px 15px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.aysa-search-btn:hover, 
.aysa-filter-btn:hover, 
.aysa-export-btn:hover,
.aysa-refresh-btn:hover {
    background: #135e96;
}

/* Task Management Styles */
.aysa-task-group {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.aysa-task-group-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.aysa-task-group-icon {
    font-size: 18px;
}

.aysa-task-group-header h4 {
    margin: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.aysa-task-group-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aysa-badge-auto {
    background: #e3f2fd;
    color: #1976d2;
}

.aysa-badge-manual {
    background: #fff3e0;
    color: #f57c00;
}

.aysa-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aysa-task-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.aysa-task-item:last-child {
    border-bottom: none;
}

.aysa-task-item:hover {
    background: #fafafa;
}

.aysa-task-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.aysa-task-checkbox {
    margin: 0;
    width: 18px;
    height: 18px;
}

.aysa-task-label {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.aysa-task-item[data-status="completed"] .aysa-task-label {
    text-decoration: line-through;
    color: #666;
}

.aysa-task-detail-btn {
    padding: 4px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aysa-task-detail-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.aysa-task-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
}

.aysa-task-progress .progress-container {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.aysa-task-progress .progress-bar {
    height: 100%;
    background: var(--progress-color, #2271b1);
    width: var(--percentage, 0%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    min-width: 80px;
    text-align: right;
}

/* Task Detail Modal Styles */
.aysa-task-detail-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.aysa-task-detail-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.aysa-task-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.aysa-task-detail-header h3 {
    margin: 0;
    color: #333;
}

.aysa-task-detail-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aysa-task-detail-close:hover {
    color: #000;
}

.aysa-task-detail-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.aysa-task-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.aysa-task-status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.aysa-task-status-in-progress {
    background: #e3f2fd;
    color: #1976d2;
}

.aysa-task-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.aysa-task-detail-section {
    margin-bottom: 20px;
}

.aysa-task-detail-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.aysa-task-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aysa-task-step {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
}

.aysa-task-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.aysa-task-step-completed {
    background: #2e7d32;
    color: white;
}

.aysa-task-step-current {
    background: #1976d2;
    color: white;
}

.aysa-task-step-pending {
    background: #e0e0e0;
    color: #666;
}

.aysa-task-step-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.aysa-task-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.aysa-task-metric {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.aysa-task-metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.aysa-task-metric-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .aysa-task-group-header {
        padding: 12px 15px;
    }
    
    .aysa-task-item {
        padding: 12px 15px;
    }
    
    .aysa-task-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .aysa-task-detail-btn {
        order: 3;
        margin-left: auto;
    }
    
    .aysa-task-progress {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .aysa-task-metrics {
        grid-template-columns: 1fr;
    }
    
    .aysa-task-detail-content {
        width: 95%;
        max-width: 600px;
    }
}

/* Bulk Actions Status Styles */
#bulk-action-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#bulk-action-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#bulk-action-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#bulk-action-status.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Bulk Actions Container */
.aysa-bulk-actions {
    transition: all 0.3s ease;
}

.aysa-bulk-actions:hover {
    background-color: #f0f0f0 !important;
}

/* Bulk Action Buttons */
#approve-all-pending-reviews:disabled,
#reject-all-pending-reviews:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#approve-all-pending-reviews:disabled:hover,
#reject-all-pending-reviews:disabled:hover {
    background-color: inherit !important;
    border-color: inherit !important;
} 