/* assets/specs/css/specs-common.css */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Manrope', sans-serif;
}

.specs-header {
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.specs-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.specs-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Card Styles */
.card-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #eef2f5;
}

.card-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f4f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: #3182ce;
    color: white;
}

.btn-primary:hover {
    background-color: #2b6cb0;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #edf2f7;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Grid Layout for Index */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spec-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.spec-card h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.spec-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Chat Styles */
.chat-container {
    height: 70vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.chat-input-area {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input-group {
    display: flex;
    gap: 1rem;
}

.message-user {
    background: #3182ce;
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 12px;
    margin-left: auto;
    width: fit-content;
    max-width: 80%;
    overflow-wrap: anywhere;
    margin-bottom: 1rem;
}

.message-bot {
    background: white;
    color: #2d3748;
    padding: 1rem;
    border-radius: 12px 12px 12px 0;
    margin-right: auto;
    width: fit-content;
    max-width: 80%;
    overflow-wrap: anywhere;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.message-markdown p {
    margin: 0 0 0.75rem 0;
}

.message-markdown p:last-child {
    margin-bottom: 0;
}

.message-markdown ul,
.message-markdown ol {
    margin: 0 0 0.75rem 0;
    padding-left: 1.5rem;
}

.message-markdown h1,
.message-markdown h2,
.message-markdown h3,
.message-markdown h4 {
    margin: 0.75rem 0 0.5rem 0;
    font-weight: 600;
}

.message-markdown code {
    background: #edf2f7;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.message-markdown pre {
    background: #edf2f7;
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
}

.message-markdown pre code {
    background: none;
    padding: 0;
}

.message-markdown blockquote {
    border-left: 3px solid #cbd5e0;
    margin: 0 0 0.75rem 0;
    padding-left: 0.75rem;
    color: #4a5568;
}

.message-markdown table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
}

.message-markdown th,
.message-markdown td {
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.6rem;
}

.message-markdown .katex-display {
    overflow-x: auto;
    padding: 0.25rem 0;
}

.source-badge {
    display: inline-block;
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #4a5568;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

/* Table Styles */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table th, 
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.specs-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #4a5568;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}
.status-success { background: #c6f6d5; color: #22543d; }
.status-warning { background: #feebc8; color: #744210; }