@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-light: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.8);
    --accent-blue: #2563eb;
    --accent-indigo: #4f46e5;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body.daos-dashboard-page {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: #f8fafc;
}

body.is-fullscreen-view {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    overflow: hidden !important;
}

/* Helper to hide other stuff when in fullscreen - less aggressive now that we use minimalist templates */
body.is-fullscreen-view .site-header,
body.is-fullscreen-view .site-footer,
body.is-fullscreen-view .visually-hidden {
    display: none !important;
}

.daos-dashboard-container.is-fullscreen-mode {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2000 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    margin: 0 !important;
}

.daos-dashboard-container .glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.daos-dashboard-container .card-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.daos-dashboard-container .status-badge {
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.daos-dashboard-container .status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.daos-dashboard-container .status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.daos-dashboard-container .status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#doc-canvas {
    background: #ffffff;
    position: relative;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.bbox {
    position: absolute;
    border: 1px solid rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.bbox:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
    z-index: 10;
}

.bbox-cluster {
    border: 2px solid rgba(79, 70, 229, 0.4);
    background: rgba(79, 70, 229, 0.03);
}

.daos-dashboard-container ::-webkit-scrollbar {
    width: 6px;
}

.daos-dashboard-container ::-webkit-scrollbar-track {
    background: transparent;
}

.daos-dashboard-container ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.daos-dashboard-container ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Treeview and Configuration Modal */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.tree-node div:active {
    transform: scale(0.98);
}

.rotate-90 {
    transform: rotate(90deg);
}

/* Treeview Decorations */
.root-node {
    position: relative;
}

.tree-node {
    position: relative;
}

.tree-children {
    transition: all 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.model-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-item:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.model-item.sortable-ghost {
    opacity: 0.3;
    border: 2px dashed #10b981;
}

.model-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.model-checkbox:checked {
    background: #10b981;
    border-color: #10b981;
}

.model-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.model-checkbox:hover {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Custom Button Enhancements - Fixes for Unseen Text */
.daos-btn-primary {
    background-color: #2563eb !important;
    /* blue-600 */
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
}

.daos-btn-emerald {
    background-color: #059669 !important;
    /* emerald-600 */
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3) !important;
}

#btn-text,
.btn-text {
    color: #ffffff !important;
    font-weight: 800 !important;
    display: inline-block !important;
}

button i {
    color: #ffffff !important;
}

#save-config {
    color: #000000 !important;
}