:root {
    --sidebar-width: 250px;
}

[data-bs-theme="dark"] {
    --bg-darker: #121418;
    --bg-dark: #1a1d23;
    --bg-card: #1a1d23;
    --border-color: #2d3239;
    --text-main: #e1e4e8;
    --text-muted-custom: #8b949e;
}

[data-bs-theme="light"] {
    --bg-darker: #f0f2f5;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --border-color: #dee2e6;
    --text-main: #212529;
    --text-muted-custom: #6c757d;
}

body {
    background-color: var(--bg-darker);
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

#page-content {
    margin-left: var(--sidebar-width);
}

@media (max-width: 991.98px) {
    #page-content {
        margin-left: 0;
    }
}

.sidebar .nav-link {
    color: var(--text-muted-custom);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--text-main);
    background: rgba(13, 110, 253, 0.15);
}

.sidebar .nav-link.active {
    color: #0d6efd;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.card {
    border-radius: 0.75rem;
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.cursor-pointer {
    cursor: pointer;
}

.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    min-height: calc(100vh - 220px);
}

.kanban-column {
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.kanban-cards {
    padding: 0.5rem;
    flex-grow: 1;
    min-height: 100px;
    overflow-y: auto;
}

.kanban-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.15s ease;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.kanban-cards.drag-over {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 0.5rem;
}

.kanban-card a {
    color: inherit;
}

@media (max-width: 767.98px) {
    .kanban-column {
        min-width: 250px;
    }
}

.list-group-item {
    transition: background-color 0.15s ease;
}

.list-group-item-action:hover {
    background-color: rgba(128, 128, 128, 0.1) !important;
}

.badge i,
.badge svg {
    width: 12px;
    height: 12px;
}

.toast {
    --bs-toast-bg: var(--bg-dark);
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.offcanvas {
    width: var(--sidebar-width) !important;
    background: var(--bg-dark);
}

.table > :not(caption) > * > * {
    background-color: transparent;
}

#flash-messages .alert {
    border-radius: 0.5rem;
}

.navbar-top {
    background: var(--bg-dark);
    border-color: var(--border-color) !important;
}

.deal-amount {
    color: #20c997;
    font-weight: 600;
}

.quarterly-card {
    border-left: 3px solid #0d6efd;
}
