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

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fafbfc;
    color: #2d3748;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Module Display */
.module {
    display: none;
}

.module.active {
    display: block;
}

/* Minimalist Navigation */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 600;
    color: #1a202c !important;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    padding: 0.25rem 0.6rem !important;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #2b6cb0 !important;
    background-color: #ebf8ff;
}

.nav-link.active {
    color: #2b6cb0 !important;
    background-color: #ebf8ff;
}

/* Clean Container */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 0.75rem;
}

/* Minimalist Summary Cards */
.summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

.summary-card h5,
.summary-card h6 {
    margin: 0 0 0.2rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-card h3 {
    margin: 0 0 0.15rem 0;
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.summary-card small {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.1rem;
}

/* Clean Search Section */
.search-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    outline: none;
}

/* Modern Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-outline-primary {
    border: 1px solid #4299e1;
    color: #4299e1;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #4299e1;
    color: white;
}

.btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
}

/* Clean Table */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 0;
}

.card-body {
    padding: 1rem;
}

.table {
    margin: 0;
}

.table th {
    background-color: #f7fafc;
    border: none;
    font-weight: 600;
    color: #4a5568;
    padding: 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 0.6rem;
    border-top: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background-color: #f7fafc;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.bg-success {
    background-color: #c6f6d5 !important;
    color: #22543d !important;
}

.bg-warning {
    background-color: #faf089 !important;
    color: #744210 !important;
}

.bg-danger {
    background-color: #fed7d7 !important;
    color: #742a2a !important;
}

.bg-secondary {
    background-color: #e2e8f0 !important;
    color: #4a5568 !important;
}

/* Quill Editor Styles - Match exchanges_reply */
.ql-editor {
    font-size: 15px;
    color: #2d3748;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.ql-editor p,
.ql-editor ol,
.ql-editor ul,
.ql-editor pre,
.ql-editor blockquote,
.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
    margin: 0;
    padding: 0;
    color: #2d3748;
}

.ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

.ql-snow .ql-stroke {
    stroke: #4a5568;
}

.ql-snow .ql-fill {
    fill: #4a5568;
}

.ql-snow .ql-picker-label {
    color: #4a5568;
}

/* Footer Styles */
.main-footer {
    background-color: #f3f5f9;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #333;
    margin: 0;
    font-weight: 400;
}

.footer-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container-fluid {
        padding: 0.5rem;
    }
    
    .navbar {
        padding: 0.2rem 0;
    }
    
    .summary-card {
        margin-bottom: 0.5rem;
        padding: 0.6rem;
    }
    
    .ql-editor {
        font-size: 14px;
    }
    
    .main-footer {
        padding: 0.75rem 1rem;
    }
    
    .footer-content p {
        font-size: 0.8125rem;
    }
}

