:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-gap: 20px;
    height: 100vh;
}

header {
    grid-column: 1 / -1;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.chat-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--light-gray);
}

#user-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 16px;
    resize: none;
    overflow-y: hidden;
    min-height: 44px;
    max-height: 150px;
    line-height: 1.5;
}

#send-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#send-button:hover {
    background-color: #2980b9;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 80%;
}

.user-message {
    background-color: var(--secondary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background-color: var(--light-gray);
    color: var(--text-color);
    align-self: flex-start;
}

.thinking {
    display: inline-block;
    position: relative;
}

.thinking:after {
    content: "";
    position: absolute;
    width: 24px;
    text-align: left;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: "..."; }
}

.ticket-info {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.ticket-info h3, .ticket-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ticket-info ul {
    list-style-type: none;
}

.ticket-info li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.view-summary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.view-summary:hover {
    background-color: #1c2e40;
}

.hidden {
    display: none;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Code block styling */
pre, code {
    background-color: #f1f1f1;
    padding: 3px 5px;
    border-radius: 3px;
    font-family: monospace;
}

pre {
    padding: 10px;
    overflow-x: auto;
    margin: 10px 0;
    white-space: pre-wrap;
    max-width: 100%;
    display: block;
}

code {
    white-space: pre-wrap;
}

.bot-message {
    background-color: var(--light-gray);
    color: var(--text-color);
    align-self: flex-start;
    white-space: pre-line;
    max-width: 80%;
}

/* Access restriction notices */
.access-notice {
    color: #e74c3c;
    font-size: 0.9em;
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.restricted-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin: 10px 0;
    color: #856404;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .message {
        max-width: 90%;
    }
}
