/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1e293b;
}

/* Login System Styles */
.login-container, .admin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.login-card, .admin-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

.admin-card {
    max-width: 800px;
}

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

.login-header, .admin-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header .logo, .admin-header .logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-header h1, .admin-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p, .admin-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.login-form, .admin-auth, .admin-panel {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.login-btn, .btn-primary, .btn-secondary, .btn-danger {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.login-btn, .btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.login-btn:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin: 0;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.3);
}

.admin-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.admin-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.3);
}

.login-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0;
}

.login-footer strong {
    color: #f59e0b;
    font-weight: 600;
}

/* Admin Panel Styles */
.hidden {
    display: none !important;
}

.admin-actions {
    margin-bottom: 2rem;
}

.add-store-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.add-store-section h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-row .form-input {
    margin-bottom: 0;
}

.form-row .btn-primary {
    width: auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.stores-list h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stores-grid {
    display: grid;
    gap: 1rem;
}

.store-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.store-item:hover {
    border-color: #1e40af;
    box-shadow: 0 2px 8px -2px rgba(30, 64, 175, 0.1);
}

.store-info h4 {
    color: #1e40af;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.store-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.no-stores {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2rem;
}

.admin-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    text-align: center;
}

/* Auth Messages */
.auth-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: messageSlide 0.3s ease-out;
}

.auth-message.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-message.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Header Updates */
.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.store-name {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.stats-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f59e0b;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.objections-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.objection-category {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.objection-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #1e40af;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.objection-category:hover {
    background: #f1f5f9;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(30, 64, 175, 0.1);
}

.objection-category:hover::before {
    transform: scaleY(1);
}

.objection-category.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #1e40af;
    box-shadow: 0 4px 12px -2px rgba(30, 64, 175, 0.15);
}

.objection-category.active::before {
    transform: scaleY(1);
}

.category-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-emoji {
    font-size: 1.2rem;
}

.category-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* Chat Container */
.chat-container {
    flex: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.client-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.status {
    font-size: 0.875rem;
    opacity: 0.9;
    color: #10b981;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #fafafa;
    position: relative;
}

.welcome-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.welcome-message h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-message p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    animation: messageSlide 0.3s ease-out;
}

.message.client {
    justify-content: flex-start;
}

.message.seller {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.message.client .message-bubble {
    background: #e5e7eb;
    color: #374151;
    border-bottom-left-radius: 6px;
}

.message.seller .message-bubble {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Response Options */
.response-options {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.response-options.hidden {
    display: none;
}

.options-header {
    margin-bottom: 1rem;
}

.options-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.objection-text {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.response-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.response-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.response-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.5s ease;
}

.response-btn:hover {
    border-color: #1e40af;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(30, 64, 175, 0.15);
}

.response-btn:hover::before {
    left: 100%;
}

.response-btn.correct {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #10b981;
    color: #065f46;
}

.response-btn.incorrect {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #991b1b;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-content {
    padding: 2rem;
    text-align: center;
}

.modal-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.progress-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    color: #64748b;
}

.progress-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
}

.modal-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
}

/* Animations */
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Feedback Messages */
.feedback-message {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    color: #065f46;
    font-size: 0.95rem;
    line-height: 1.4;
}

.feedback-message.negative {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-section {
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 0.5rem;
    }

    .sidebar-header, .modal-content {
        padding: 1rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .response-options {
        padding: 1rem;
    }

    .progress-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .message-bubble {
        max-width: 85%;
    }
    
    .login-container, .admin-container {
        padding: 1rem;
    }
    
    .login-form, .admin-auth, .admin-panel {
        padding: 1.5rem;
    }
    
    .login-header, .admin-header {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Footer Credits */
.footer-credits {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    margin-top: auto;
}

.credits-content p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.credits-content strong {
    color: #f59e0b;
    font-weight: 600;
}

/* Evaluation Styles */
.evaluation-summary {
    text-align: left;
}

.evaluation-feedback {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
}

.evaluation-stats {
    margin-bottom: 1.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-grid .stat-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.improvements-section {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.improvements-section h4 {
    color: #92400e;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.improvements-list {
    list-style: none;
    padding: 0;
}

.improvements-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(146, 64, 14, 0.1);
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.4;
}

.improvements-list li:last-child {
    border-bottom: none;
}

.responses-review h4 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.responses-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.response-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.response-item:last-child {
    border-bottom: none;
}

.response-item.excellent {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #10b981;
}

.response-item.good {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.response-item.average {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.response-category {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e40af;
}

.response-score {
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.response-item.excellent .response-score {
    background: #10b981;
    color: white;
}

.response-item.good .response-score {
    background: #3b82f6;
    color: white;
}

.response-item.average .response-score {
    background: #f59e0b;
    color: white;
}

.response-objection {
    font-style: italic;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.response-explanation {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .responses-list {
        max-height: 200px;
    }
    
    .response-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-style: italic;
}

.loading::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #64748b;
    animation: loading-dots 1.4s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Indicators */
.success-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress Indicators */
.category-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}