body {
    font-family: "Space Grotesk", sans-serif;
    margin: 0;
    padding: 0;
    color: #ededec;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(180deg, #1D1D1C 0%, #4682BB 200%);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 3rem;
    text-align: center;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ededec;
    margin: 0;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    margin: 0;
    color: #ededec;
}

/* Clock Styles */
.clock-container {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock {
    font-size: 3rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    color: #FF8D58;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.clock-label {
    font-size: 1rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.connection-status {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.status-connected {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-connecting {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: auto;
    height: 60px;
    border-radius: 50px;
    background-color: #FF8D58;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 0 24px;
}

.chat-button svg {
    width: 20px;
    height: auto;
}

.chat-button:hover {
    background-color: #10304D;
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px;
    height: 70vh;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.chat-window.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.chat-window.expanded {
    bottom: 5%;
    right: 5%;
    width: 90%;
    height: 90%;
    z-index: 1001;
}

.chat-header {
    background-color: #FF8D58;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-refresh-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    margin-right: 8px;
}

.chat-refresh-btn:hover {
    opacity: 0.8;
}

.chat-expand-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    margin-right: 8px;
}

.chat-expand-btn:hover {
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background-color: #FF8D58;
    color: white;
    align-self: flex-end;
}

.message.bot {
    background-color: #374151;
    color: #ededec;
    align-self: flex-start;
}
.message.system {
    color: gray;
    align-self: flex-start;
}

.message.bot a {
    color:#FF8D58;
}

.chat-input-container {
    padding: 12px 16px;
    border-top: 1px solid #374151;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50px;
}

.chat-input {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #374151;
    border-radius: 20px;
    background-color: #2a2a2a;
    color: #ededec;
    outline: none;
    font-size: 14px;
}

.chat-input:focus {
    border-color: #FF8D58;
}

.chat-send {
    padding: 10px 14px;
    background-color: #FF8D58;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    min-width: 60px;
}

.chat-send:hover {
    background-color: #10304D;
}

.chat-send:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

.file-upload-btn {
    padding: 10px;
    background-color: #10304D;
    border:1px solid #fff;
    color: #ededec;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-btn svg path {
    fill:#fff;
    margin-right:12px;
}

.file-upload-btn:hover {
    background-color: #4b5563;
}

.file-input {
    display: none;
}

.file-preview {
    margin-top: 8px;
    padding: 6px 10px;
    background-color: #374151;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #9ca3af;
    display: none;
}

.file-preview.show {
    display: block;
}

.file-preview .file-name {
    color: #FF8D58;
    font-weight: 600;
}

.file-preview .remove-file {
    margin-left: 8px;
    color: #ef4444;
    cursor: pointer;
    font-weight: bold;
}

.message .file-attachment {
    margin-top: 6px;
    padding: 6px 10px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.message .file-attachment a {
    color: #ededec;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message .file-attachment a:hover {
    text-decoration: underline;
}

.message .file-attachment .file-icon {
    font-size: 16px;
}

/* Loading Animation */
.loading-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background-color: #374151;
    color: #ededec;
    border-radius: 18px;
    max-width: 80%;
    align-self: flex-start;
    animation: fadeIn 0.3s ease;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FF8D58;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 