/**
 * Trash in Toolbar CSS
 * Styles for the trash functionality in WordPress toolbar
 */

/* Toolbar item styling */
#wp-admin-bar-trash-current-post .ab-item {
    color: #EF4444 !important;
    transition: all 0.2s ease;
}

#wp-admin-bar-trash-current-post .ab-item:hover {
    color: #DC2626 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

#wp-admin-bar-trash-current-post .ab-icon {
    color: #EF4444 !important;
    transition: all 0.2s ease;
}

#wp-admin-bar-trash-current-post:hover .ab-icon {
    color: #DC2626 !important;
}

/* Hover and click states */
#wp-admin-bar-trash-current-post .ab-item {
    transition: all 0.2s ease;
}

#wp-admin-bar-trash-current-post:hover .ab-item {
    background-color: rgba(239, 68, 68, 0.1) !important;
    transform: translateY(-1px);
}

#wp-admin-bar-trash-current-post a:active {
    transform: scale(0.95);
}

/* WordPress admin notice styling */
.trash-in-toolbar-admin-notice {
    border-left: 4px solid #EF4444;
    background: #FEF2F2;
    color: #991B1B;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-weight: 500;
}

.trash-in-toolbar-admin-notice.success {
    border-left-color: #10B981;
    background: #F0FDF4;
    color: #065F46;
}

/* Admin page styling */
.trash-in-toolbar-admin-page {
    max-width: 800px;
}

.trash-in-toolbar-admin-page .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    font-weight: 600;
    color: #0F172A;
}

.trash-in-toolbar-admin-page .form-table td {
    padding: 15px 10px;
}

.trash-in-toolbar-admin-page .form-table input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.trash-in-toolbar-admin-page .form-table label {
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

/* Card styling for admin page */
.trash-in-toolbar-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.trash-in-toolbar-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0F172A;
    font-size: 20px;
    font-weight: 600;
}

/* Button styling */
.trash-in-toolbar-admin-page .button-primary {
    background-color: #6366F1;
    border-color: #6366F1;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.trash-in-toolbar-admin-page .button-primary:hover {
    background-color: #4F46E5;
    border-color: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Status indicator */
.trash-in-toolbar-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trash-in-toolbar-status.enabled {
    background-color: #D1FAE5;
    color: #065F46;
}

.trash-in-toolbar-status.disabled {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Tooltip styling */
.trash-in-toolbar-tooltip {
    position: relative;
    display: inline-block;
}

.trash-in-toolbar-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #0F172A;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.trash-in-toolbar-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0F172A transparent transparent transparent;
}

.trash-in-toolbar-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Accessibility improvements */
.trash-in-toolbar-admin-page input[type="checkbox"]:focus {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

.trash-in-toolbar-admin-page .button-primary:focus {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .trash-in-toolbar-notification {
        border: 2px solid currentColor;
    }
    
    #wp-admin-bar-trash-current-post .ab-item {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #wp-admin-bar-trash-current-post .ab-item,
    .trash-in-toolbar-admin-page .button-primary {
        transition: none;
    }
}
