.dsca-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dsca-header {
    text-align: center;
    margin-bottom: 30px;
}

.dsca-header h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
}

.dsca-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.dsca-session-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.dsca-timer {
    font-size: 18px;
}

.dsca-category-selector {
    margin-bottom: 20px;
}

.dsca-category-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.dsca-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dsca-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dsca-chat-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dsca-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.dsca-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dsca-message-content {
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

.dsca-user-message .dsca-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 50px;
}

.dsca-ai-message .dsca-message-content {
    background: white;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
    margin-right: 50px;
}

.dsca-error-message .dsca-message-content {
    background: #fee;
    color: #c33;
    border: 2px solid #fcc;
}

.dsca-input-container {
    margin-bottom: 20px;
}

.dsca-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dsca-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dsca-textarea:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.dsca-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dsca-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.dsca-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dsca-loader {
    display: inline-block;
}

.dsca-cooldown-notice {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.3);
}

.dsca-cooldown-content h3 {
    margin-top: 0;
    font-size: 24px;
}

.dsca-cooldown-content p {
    font-size: 18px;
    margin: 10px 0;
}

.dsca-cooldown-subtext {
    font-size: 14px;
    opacity: 0.9;
}

.dsca-quick-tips {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
}

.dsca-quick-tips h4 {
    margin-top: 0;
    color: #2c3e50;
}

.dsca-quick-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}

.dsca-quick-tips li {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

/* Scrollbar styling */
.dsca-messages::-webkit-scrollbar {
    width: 8px;
}

.dsca-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dsca-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dsca-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dsca-container {
        padding: 0 15px;
    }
    
    .dsca-header h2 {
        font-size: 24px;
    }
    
    .dsca-user-message .dsca-message-content {
        margin-left: 20px;
    }
    
    .dsca-ai-message .dsca-message-content {
        margin-right: 20px;
    }
}