/* 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;
}

.ai-info {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    margin: 10px 0;
}

.ai-info small {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* 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;
}

/* AI Dialog */
.ai-dialog-content {
    padding: 16px;
}

.ai-dialog-prompt {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
}

.ai-dialog-response {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin: 10px 0;
}

.ai-dialog-loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.ai-dialog-error {
    color: #dc3545;
    padding: 8px;
    border-radius: 4px;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    margin: 10px 0;
    display: none;
}

.error-details {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-size: 12px;
    color: #856404;
}

/* 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); }
}

/* 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);
    }
}

/* Buttons and Actions */
.ai-button, .submit-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-button:hover, .submit-button:hover {
    background-color: #34495e;
}

.help-link {
    color: #007bff;
    text-decoration: underline;
    margin-left: 5px;
}

.help-link:hover {
    color: #0056b3;
} 