/**
 * AI eShop Chat - Admin Styles
 * Claude Orange Theme for Admin Panel
 *
 * @package AI_eShop_Chat
 * @version 1.0.1
 * Last updated: 2025-01-27
 */

/* Admin Page Container */
#aieo-chat-admin {
    background: #F9FAFB;
    padding: 20px;
    margin: 0 -20px;
}

/* Orange Accents */
#aieo-chat-admin h1,
#aieo-chat-admin h2 {
    color: #03163c;
}

#aieo-chat-admin .aieo-chat-section {
    transition: all 0.3s ease;
}

#aieo-chat-admin .aieo-chat-section:hover {
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2) !important;
}

/* Form Styling */
#aieo-chat-admin input[type="text"],
#aieo-chat-admin input[type="password"],
#aieo-chat-admin input[type="number"],
#aieo-chat-admin select,
#aieo-chat-admin textarea {
    border-color: #E5E7EB;
    transition: all 0.3s ease;
}

#aieo-chat-admin input[type="text"]:focus,
#aieo-chat-admin input[type="password"]:focus,
#aieo-chat-admin input[type="number"]:focus,
#aieo-chat-admin select:focus,
#aieo-chat-admin textarea:focus {
    border-color: #03163c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

/* Button Hover Effects */
#aieo-chat-admin .button-primary:not(.button-hero):hover {
    background: #03163c;
    border-color: #03163c;
}

/* Progress Bar */
#aieo-chat-admin .progress-bar {
    position: relative;
}

#aieo-chat-admin .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Stat Cards Animation */
#aieo-chat-admin [style*="grid-template-columns"] > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#aieo-chat-admin [style*="grid-template-columns"] > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Table Styling */
#aieo-chat-admin .wp-list-table {
    border-radius: 8px;
    overflow: hidden;
}

#aieo-chat-admin .wp-list-table thead {
    background: linear-gradient(135deg, #03163c 0%, #03163c 100%);
    color: white;
}

#aieo-chat-admin .wp-list-table th {
    color: white !important;
    font-weight: 600;
}

/* Checkbox Styling */
#aieo-chat-admin input[type="checkbox"] {
    accent-color: #03163c;
}

/* Code Blocks */
#aieo-chat-admin code {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* Checkbox Label Alignment - Simple inline layout like regular checkboxes */
.aieo-chat-label-flex {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    cursor: pointer;
}

.aieo-chat-label-flex input[type="checkbox"] {
    margin-top: 0;
    flex-shrink: 0;
}

.aieo-chat-label-flex div {
    display: inline;
}

/* Taxonomies Section Spacing and Title */
.aieo-chat-taxonomies-section {
    margin-top: 24px !important;
}

.aieo-chat-taxonomies-title {
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Delete Buttons Container */
.aieo-chat-delete-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

/* Delete Button Styling */
.aieo-chat-delete-btn {
    background: #dc2626 !important;
    color: white !important;
    border-color: #b91c1c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    width: 100%;
}

.aieo-chat-delete-btn:hover {
    background: #b91c1c !important;
    border-color: #991b1b !important;
}

.aieo-chat-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Delete All Button - Same style as Delete Selected */
.aieo-chat-delete-all-btn {
    background: #dc2626 !important;
    color: white !important;
    border-color: #b91c1c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    width: 100%;
}

.aieo-chat-delete-all-btn:hover {
    background: #b91c1c !important;
    border-color: #991b1b !important;
}

/* Delete Header - Stack title and button vertically */
.aieo-chat-delete-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

/* Options Button Styling */
.aieo-chat-options-btn {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #2563eb !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
}

.aieo-chat-options-btn:hover {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
}
