/* Main Layout */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Editor Container */
.editor-container {
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    height: calc(100vh - 56px);
    position: relative;
}

/* TinyMCE Customization */
.tox-tinymce {
    border: none !important;
    border-radius: 0 !important;
}

.tox .tox-toolbar__primary {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
}

.tox .tox-tbtn {
    color: #495057 !important;
}

.tox .tox-tbtn:hover {
    background: #e9ecef !important;
}

/* AI Panel */
.ai-panel {
    background: white;
    border-left: 1px solid #e9ecef;
    height: calc(100vh - 56px);
}

.card {
    border: none;
    border-radius: 0;
    height: 100%;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.chat-history {
    height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 1rem;
}

.user-message, .ai-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 85%;
}

.user-message {
    background: #e9ecef;
    margin-left: auto;
}

.ai-message {
    background: #e3f2fd;
    margin-right: auto;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Status Bar */
.status-bar {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-panel {
        position: fixed;
        right: 0;
        top: 56px;
        width: 100%;
        z-index: 1000;
    }
    
    .editor-container {
        height: calc(100vh - 56px - 300px);
    }
}

/* Toolbar Customization */
.tox .tox-toolbar__group {
    border-color: #e9ecef !important;
}

.tox .tox-tbtn--select {
    background: white !important;
}

/* Auto-save indicator */
.auto-save-indicator {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 1rem;
}

.auto-save-indicator.saving {
    color: #0d6efd;
}

.auto-save-indicator.saved {
    color: #198754;
}

/* Loading spinner */
.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input Group */
.input-group {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

#aiPrompt {
    border-radius: 0.25rem 0 0 0.25rem;
}

.input-group .btn {
    border-radius: 0 0.25rem 0.25rem 0;
} 