:root {
    --canvas-bg: #ffffff;
    --grid-color: rgba(0, 0, 0, 0.03);
    --line-color: #6c757d;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    color: #1a1f36;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}


.viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    position: relative;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
}

.viewport:active {
    cursor: grabbing;
}

.canvas-board {
    width: 6000px;
    height: 4000px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0, 0);
}


#cards-container {
    transition: none;
}

.card {
    position: absolute;
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}


.card:hover {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    transform: translateY(-2px);
}

.card-header {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px 16px 0 0 !important;
    padding: 12px 16px;
}


.t-account-table {
    border-top: 2px solid #dee2e6;
}

.t-account-table td {
    width: 50%;
    vertical-align: top;
    padding: 10px;
    font-size: 0.85rem;
}

.t-account-table td:first-child {
    border-right: 2px solid #dee2e6;
}

.connection-point {
    width: 10px;
    height: 10px;
    background: var(--line-color);
    border-radius: 50%;
    position: absolute;
}

.dot-in {
    left: -5px;
    top: 50%;
}

.dot-out {
    right: -5px;
    top: 50%;
}

/* Flow Paths */
.svg-line {
    fill: none;
    stroke: var(--line-color);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: flow 20s linear infinite;
    marker-end: url(#arrowhead);
}

@keyframes flow {
    from {
        stroke-dashoffset: 200;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
}

.table td {
    font-size: 0.85rem;
}

/* Specific accounting styles */
.debit-val {
    color: #0d6efd;
    font-weight: 600;
}

.credit-val {
    color: #198754;
    font-weight: 600;
}

#desktop-warning {
    backdrop-filter: blur(10px);
}

/* Card Type Colors (Subtle Accent) */
.card-asset {
    border-top: 4px solid #0d6efd !important;
}

.card-liability {
    border-top: 4px solid #dc3545 !important;
}

.card-equity {
    border-top: 4px solid #6f42c1 !important;
}

.card-revenue {
    border-top: 4px solid #198754 !important;
}

.card-expense {
    border-top: 4px solid #fd7e14 !important;
}

/* Row Colors - More Premium */
.row-asset {
    background-color: rgba(13, 110, 253, 0.03);
}

.row-liability {
    background-color: rgba(220, 53, 69, 0.03);
}

.row-equity {
    background-color: rgba(111, 66, 193, 0.05);
}

.row-revenue {
    background-color: rgba(25, 135, 84, 0.03);
}

.row-expense {
    background-color: rgba(253, 126, 20, 0.03);
}



/* Interactive Card Styles */
.card-header {
    cursor: move;
    user-select: none;
}

.card {
    min-width: 300px;
}


.no-transition {
    transition: none !important;
}

.dragging {
    opacity: 0.85;
    transform: scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
}