/* General styles */
body {
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 2rem;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* Form elements */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
    border-color: #86b7fe;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-feedback {
    min-width: 120px;
}

/* Generated content */
#generatedText {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100px;
}

/* Feedback section */
#feedbackForm {
    transition: all 0.3s ease;
}

/* User section */
#userWelcome {
    color: white;
    font-weight: 500;
}

/* Modal */
.modal-content {
    border-radius: 8px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Dashboard layout */
.sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    padding-top: 20px;
}

.sidebar .nav-link {
    color: #333;
    padding: .5rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: #2470dc;
    background-color: #e9ecef;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

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

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

.chat-input {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.message.generated {
    background-color: #e3f2fd;
}

.message-content {
    white-space: pre-wrap;
}

.message-actions {
    opacity: 0.7;
}

.message:hover .message-actions {
    opacity: 1;
}

.feedback-section {
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    margin-top: 8px;
}

/* Login page styles */
.login-container {
    max-width: 400px;
    margin: 40px auto;
}

.form-control:focus {
    border-color: #2470dc;
    box-shadow: 0 0 0 0.2rem rgba(36, 112, 220, 0.25);
}

.btn-primary {
    background-color: #2470dc;
    border-color: #2470dc;
}

.btn-primary:hover {
    background-color: #1b5bb5;
    border-color: #1b5bb5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}
