/**
 * Manage Document Page Styles
 * Extracted from resources/views/filament/documents/pages/manage-document.blade.php
 */

/* Center the status toggle buttons */
[wire\:key*="status_tab"] {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Toolbar Styles */
.toolbar-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.dark .toolbar-header {
    color: #f3f4f6;
}

/* Highlight classes */
.highlight-blue {
    background-color: #F2F8FF !important;
}

.dark .highlight-blue {
    background-color: rgba(204, 222, 255, 0.2) !important;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .toolbar-grid {
        grid-template-columns: 250px 1fr 1fr;
    }
}

/* Confidence Card */
.confidence-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark .confidence-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.confidence-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.dark .confidence-title {
    color: #9ca3af;
}

.confidence-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.dark .confidence-value {
    color: #f3f4f6;
}

/* Auto Send Toggle */
.auto-send-section {
    margin-top: 1.5rem;
}

.auto-send-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dark .auto-send-label {
    color: #f3f4f6;
}

.required-asterisk {
    color: #dc2626;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input:checked+.slider {
    background-color: #22c55e;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.dark .toggle-text {
    color: #f3f4f6;
}

/* Action Lists */
.action-column-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.dark .action-column-title {
    color: #f3f4f6;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s;
    cursor: pointer;
}

.dark .action-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-card:hover {
    background-color: #f9fafb;
}

.dark .action-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.action-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.action-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.dark .action-text {
    color: #9ca3af;
}