/* Font Faces */
@font-face {
    font-family: 'YekanBakh';
    src: url('/cm-assets/fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/cm-assets/fonts/YekanBakh-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/cm-assets/fonts/YekanBakh-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/cm-assets/fonts/YekanBakh-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/cm-assets/fonts/YekanBakh-Thin.woff') format('woff');
    font-weight: 100;

}

@font-face {
    font-family: 'Vazir';
    src: url('/cm-assets/fonts/Vazir.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3861fb;
    --primary-dark: #1e4fd9;
    --primary-light: #5a7fff;
    --secondary: #4b6ff7;
    --accent: #5074f8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --surface: #ffffff;
    --surface-secondary: #f8fafc;
    --surface-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --gradient-primary: linear-gradient(135deg, #3861fb 0%, #5271f4 100%);
    --gradient-accent: linear-gradient(135deg, #4b6ff7 0%, #3861fb 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}
*{
    margin: 0;
    padding: 0;
    font-family: 'YekanBakh','Vazir' !important;
}
body {
    background: linear-gradient(135deg, #3861fb 0%, #4b6ff7 50%, #5271f4 100%);
    background-attachment: fixed;
    direction: rtl;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--gradient-primary);
}

.loader-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-dot {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 24px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main Container */
.container {
    max-width: 540px;
    margin: 20px auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Header */
.header {

    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.title {
    color: var(--text-primary);
    font-size: 1.8rem;
    text-align: center;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 10px;
}

/* Summary Box */
.summary-box {
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-success);
    border-radius: 0 4px 4px 0;
}

.summary-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 2;
    text-align: justify;
    font-weight: 400;
}

/* Metrics */
.metrics {
    display: grid;
    gap: 14px;
    margin-bottom: 30px;
}

.metric-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    background: var(--surface-secondary);
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(-4px);
    border-color: var(--primary-light);
}

.metric-item:nth-child(1) { animation-delay: 0.1s; }
.metric-item:nth-child(2) { animation-delay: 0.2s; }
.metric-item:nth-child(3) { animation-delay: 0.3s; }
.metric-item:nth-child(4) { animation-delay: 0.4s; }
.metric-item:nth-child(5) { animation-delay: 0.5s; }
.metric-item:nth-child(6) { animation-delay: 0.6s; }
.metric-item:nth-child(7) { animation-delay: 0.7s; }
.metric-item:nth-child(8) { animation-delay: 0.8s; }

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

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    align-items: center;
}

.metric-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.metric-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-percent {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--surface);
}

.progress-bar {
    width: 100%;
    background-color: var(--surface-tertiary);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Colors */
.color-green { color: var(--success); }
.color-yellow { color: var(--warning); }
.color-red { color: var(--error); }

.bg-green { background: var(--gradient-success); }
.bg-yellow { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.bg-red { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }

/* Improvement Box */
.improvement-box {
    padding: 24px;
    background: linear-gradient(135deg, rgba(56, 97, 251, 0.08) 0%, rgba(75, 111, 247, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 97, 251, 0.2);
    position: relative;
    overflow: hidden;
}

.improvement-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}

.improvement-title {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.improvement-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    letter-spacing: 0.5px;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
}

.section-header {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-secondary) 100%);
    padding: 20px;
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.comment-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-dark);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.comment-number {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    background: var(--surface-tertiary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.comment-rating {
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.comment-scores {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.comment-scores span {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.comment-scores span:hover {
    transform: translateY(-2px);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 0.92rem;
    text-align: justify;
    margin-bottom: 12px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-right: 2px solid var(--border);
}

.comment-meta {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.comment-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 0.95rem;
    background: var(--surface-secondary);
    border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        background: linear-gradient(135deg, #3861fb 0%, #4b6ff7 50%, #5271f4 100%);
    }

    .container {
        padding: 10px;
    }

    .card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .title {
        font-size: 1.5rem;
    }

    .summary-text,
    .improvement-text {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .metric-header {
        font-size: 0.85rem;
    }

    .metric-item {
        padding: 12px 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    #reviewsContainer {
        padding: 0;
    }

    .comment-item {
        padding: 16px;
    }

    .strength-item,
    .weakness-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}


/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* Help Button */
.help-btn {
    width: 60px;
    height: 32px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.help-btn:hover {
    box-shadow: var(--shadow);
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(56, 97, 251, 0.05) 0%, rgba(75, 111, 247, 0.03) 100%);
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-tertiary);
    color: var(--text-secondary);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    background: var(--surface-secondary);
}

/* Help Sections */
.help-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.help-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.help-section-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin: 0 0 12px 0;
    text-align: justify;
}

.help-list {
    margin: 0;
    padding-right: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 2;
}

.help-list li {
    margin-bottom: 6px;
}

.help-list strong {
    color: var(--text-primary);
}

/* Rating Criteria */
.rating-criteria {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.criteria-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--surface-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.criteria-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: translateX(-4px);
}

.criteria-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.criteria-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.criteria-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

/* Color Legend */
.color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.legend-item {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.legend-item.green {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
}

.legend-item.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.legend-item.red {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-content {
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 120px);
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .criteria-item {
        padding: 12px;
    }

    .color-legend {
        flex-direction: column;
    }

    .legend-item {
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(56, 97, 251, 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(56, 97, 251, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn:disabled::before {
    display: none;
}

.btn-analyze {
    background: var(--gradient-success);
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(16, 185, 129, 0.4);
}

.btn-analyze:hover {
    box-shadow: var(--shadow-xl), 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Progress Container */
.progress-container {
    width: 100%;
    background-color: var(--surface-tertiary);
    border-radius: 20px;
    margin: 20px 0;
    display: none;
    overflow: hidden;
    height: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-container .progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    position: relative;
}

.progress-container .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px 20px;
    display: none;
    background: linear-gradient(135deg, rgba(56, 97, 251, 0.05) 0%, rgba(75, 111, 247, 0.03) 100%);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--surface-tertiary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(56, 97, 251, 0.2);
}

.loading-spinner p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Messages */
.error,
.success {
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 15px 0;
    display: none;
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-right: 3px solid var(--error);
}

.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-right: 3px solid var(--success);
}

/* Stats Badge */
.stats-badge {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    border-radius: 20px;
    background: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
}

/* Strength and Weakness Items */
.strength-item,
.weakness-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    text-align: right;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-item {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-right: 3px solid var(--success);
    color: #065f46;
}

.strength-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow);
}

.weakness-item {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-right: 3px solid var(--error);
    color: #991b1b;
}

.weakness-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow);
}

/* Review Cards */
#reviewsContainer {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 12px;
    border-right: 3px solid #005adc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 90, 220, 0.12);
    transform: translateX(-2px);
}

/* Subtitle */
.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95rem;
}