/* AlyVy Enterprise Application Workspace Stylesheet */

/* Explicit .hidden rule guarantee */
.hidden {
    display: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: #080C14;
    color: #f3f4f6;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #080C14;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Glassmorphism & Panel Cards */
.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-interactive {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-interactive:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.2);
}

/* Loading Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Custom Checkbox */
.custom-checkbox {
    cursor: pointer;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    display: inline-grid;
    place-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.custom-checkbox:checked::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    background-color: white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Content Editable Cells */
[contenteditable]:focus {
    outline: 2px solid #6366f1;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 6px;
    padding: 6px;
}

/* Table Headers */
th {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

th:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modern Diff Engine Tags (Pill Format) */
.diff-ins {
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.15);
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-block;
    margin: 2px 0;
}

.diff-del {
    color: #f87171;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    text-decoration: line-through;
    opacity: 0.75;
    font-size: 0.9em;
    border-radius: 6px;
    padding: 2px 7px;
    margin-right: 4px;
    display: inline-block;
}

/* Modal Animations & Backdrop */
.modal-backdrop {
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
}

/* Responsive Table & Workspace Container Rules */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    #sidebar {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    }

    .modal-backdrop > div {
        max-height: 90vh;
        overflow-y: auto;
    }

    button, select, input {
        min-height: 42px;
    }
}