/* File: assets/css/style.css */
.ai-tu-vi-app-wrapper {
    font-family: 'Roboto', sans-serif;
}
.main-container {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}
.analysis-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4c1d95;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.analysis-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.analysis-section p, 
.analysis-section li {
    line-height: 1.8;
    font-size: 1rem;
    color: #334155;
}
.analysis-section ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.analysis-section strong {
    color: #4c1d95;
    font-weight: 700;
}
.extracted-info {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #1e293b;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #8b5cf6;
    animation: spin 1s ease infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#edit-textarea {
    width: 100%;
    height: 400px;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Button Styles */
.btn {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    color: white;
    font-weight: 700;
    border-radius: 0.5rem; /* bo tròn */
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: none;
    cursor: pointer;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--tw-ring-color, rgba(99, 102, 241, 0.5));
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Color Variants */
.btn-primary {
    background-color: #7c3aed; /* violet-600 */
    --tw-ring-color: rgba(124, 58, 237, 0.5);
}
.btn-primary:hover:not(:disabled) {
    background-color: #6d28d9; /* violet-700 */
}

.btn-danger {
    background-color: #dc2626; /* red-600 */
    --tw-ring-color: rgba(220, 38, 38, 0.5);
}
.btn-danger:hover:not(:disabled) {
    background-color: #b91c1c; /* red-700 */
}

.btn-warning {
    background-color: #f59e0b; /* yellow-500 */
    --tw-ring-color: rgba(245, 158, 11, 0.5);
}
.btn-warning:hover:not(:disabled) {
    background-color: #d97706; /* yellow-600 */
}

.btn-secondary {
    background-color: #4b5563; /* gray-600 */
    --tw-ring-color: rgba(75, 85, 99, 0.5);
}
.btn-secondary:hover:not(:disabled) {
    background-color: #374151; /* gray-700 */
}

.btn-info {
    background-color: #2563eb; /* blue-600 */
    --tw-ring-color: rgba(37, 99, 235, 0.5);
}
.btn-info:hover:not(:disabled) {
    background-color: #1d4ed8; /* blue-700 */
}

.btn-success {
    background-color: #16a34a; /* green-600 */
    --tw-ring-color: rgba(22, 163, 74, 0.5);
}
.btn-success:hover:not(:disabled) {
    background-color: #15803d; /* green-700 */
}
