/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fc;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background-color: #243b55;
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    background-color: #385372;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.nav-titles h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.nav-titles p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #9cb1ca;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge.outlined {
    border: 1px solid #4a6382;
    color: #9cb1ca;
}

.badge.status-badge {
    background-color: #385372;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.green {
    background-color: #4caf50;
}

/* Layout */
.layout-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 24px;
    gap: 32px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: #8898aa;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    color: #525f7f;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-list li:hover {
    background-color: #edf2f9;
}

.sidebar-list li.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

.sidebar-list li .value {
    font-weight: 600;
}
.text-green { color: #137333; }
.text-orange { color: #b06000; }

.badge-count {
    background-color: #d2e3fc;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-count.gray {
    background-color: #e9ecef;
    color: #8898aa;
}

/* Main Content */
.main-content {
    flex-grow: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid #e3e8ee;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: #8898aa;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #32325d;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 13px;
    color: #8898aa;
}

/* Quotes Section */
.recent-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: #8898aa;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-card {
    background-color: #fff;
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid #e3e8ee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.quote-tags {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.tag-green { background-color: #e6f4ea; color: #137333; }
.tag-blue { background-color: #e8f0fe; color: #1a73e8; }
.tag-orange { background-color: #fef7e0; color: #b06000; }
.tag-light-gray { background-color: #f1f3f4; color: #5f6368; }
.tag-gray { color: #8898aa; font-family: monospace; font-size: 13px; font-weight: 400; }

.quote-price {
    text-align: right;
}

.quote-price .amount {
    font-size: 20px;
    font-weight: 700;
    color: #32325d;
}

.quote-price .tax-info {
    font-size: 12px;
    color: #8898aa;
    margin-top: 2px;
}

.vendor-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #32325d;
}

.quote-details {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #525f7f;
}

.quote-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8898aa;
}

.footer-item .icon {
    font-size: 16px !important;
    color: #adb5bd;
}

/* NLQ Section */
.nlq-section {
    background-color: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid #e3e8ee;
    margin-top: 32px;
}

.nlq-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.nlq-header h3 {
    margin: 0;
    font-size: 16px;
    color: #32325d;
}

.nlq-header .icon {
    color: #32325d;
    font-size: 20px !important;
}

.nlq-subtitle {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #8898aa;
}

.nlq-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.suggestion-pill {
    background-color: #f8f9fa;
    border: 1px solid #e3e8ee;
    color: #525f7f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-pill:hover {
    background-color: #e3e8ee;
}

.nlq-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.nlq-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #32325d;
    outline: none;
    transition: border-color 0.2s;
}

.nlq-input:focus {
    border-color: #1a73e8;
}

.nlq-input::placeholder {
    color: #adb5bd;
}

.nlq-ask-btn {
    background-color: #243b55;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nlq-ask-btn:hover {
    background-color: #1b2c40;
}

.nlq-response {
    padding-top: 12px;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-avatar {
    background-color: #243b55;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar .material-symbols-outlined {
    font-size: 14px !important;
}

.ai-name {
    font-size: 13px;
    font-weight: 600;
    color: #8898aa;
}

.ai-time {
    font-size: 12px;
    color: #adb5bd;
}

.response-bubble {
    background-color: #f4f6f8;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #525f7f;
    border: 1px solid #e3e8ee;
}
