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

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --sidebar-width: 280px;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

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

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.content-wrapper {
    flex: 1;
    background-color: var(--light-bg);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.main-content-inner {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.bill-card {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.bill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.sort-dropdown {
    min-width: 200px;
}

.role-btn {
    font-weight: 500;
    padding: 0.5rem 2rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
    font-weight: 600;
}

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.75rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.alert {
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
}

.alert-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.alert-link:hover {
    text-decoration: underline;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

.small {
    font-size: 0.875rem;
}

.Select-control {
    border-color: var(--border-color) !important;
    border-radius: 6px !important;
}

.Select-control:hover {
    border-color: var(--primary-color) !important;
}

.Select--multi .Select-value {
    background-color: #eff6ff;
    color: var(--primary-color);
    border: 1px solid #dbeafe;
    border-radius: 4px;
}

.rc-slider-track {
    background-color: var(--primary-color);
}

.rc-slider-handle {
    border-color: var(--primary-color);
}

.rc-slider-handle:hover,
.rc-slider-handle:active,
.rc-slider-handle:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.btn-group > .btn {
    border-radius: 6px;
}

.btn-group > .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

hr {
    border-color: var(--border-color);
    opacity: 1;
}

/* Bill card collapse styles */
[id^="chevron-"] {
    transition: transform 0.3s ease;
    display: inline-block;
}

[id^="header-"] {
    cursor: pointer;
}

[id^="header-"]:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

.collapse {
    transition: height 0.3s ease;
}

.bill-card .card-header {
    padding: 1rem 1.25rem;
    background-color: white;
    border-bottom: none;
}

.bill-card .collapse.show + .card-body {
    border-top: 1px solid var(--border-color);
}

/* Truncate bill title to one line with ellipsis */
.bill-title-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

