/* ========================================
   AI INTERVIEW TRAINER - COMPLETE STYLES
   Includes: Base styles + Improved Feedback Layout
   ======================================== */

/* ========================================
   BASE STYLES & TYPOGRAPHY
   ======================================== */

/* Base font sizes for better readability */
.ait-step,
.ait-profile-container,
.ait-sessions-dashboard {
    font-size: 16px;
    line-height: 1.6;
}

.ait-step h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.ait-step h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #34495e;
    font-weight: 600;
}

/* ========================================
   PROFILE COLUMNS - TWO COLUMN LAYOUT
   ======================================== */

.ait-profile-columns {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    margin: 30px 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.ait-profile-column {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    display: flex !important;
}

.ait-profile-option,
.ait-profile-card {
    flex: 1 !important;
    background: white !important;
    padding: 40px 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.ait-profile-option:hover,
.ait-profile-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #3498db !important;
}

.ait-option-icon,
.ait-profile-card .ait-option-icon {
    font-size: 48px !important;
    margin-bottom: 20px !important;
}

.ait-profile-option h4,
.ait-profile-card h4 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    color: #2c3e50 !important;
}

.ait-profile-option p,
.ait-profile-card p {
    color: #7f8c8d !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
}

.ait-profile-option .ait-button,
.ait-profile-card .ait-button {
    margin-top: auto !important;
    align-self: center !important;
    width: auto !important;
    min-width: 200px !important;
}

/* Second column button - Green color */
.ait-profile-column:last-child .ait-button.secondary {
    background: #27ae60 !important;
    border: 2px solid #27ae60 !important;
}

.ait-profile-column:last-child .ait-button.secondary:hover {
    background: #219652 !important;
    border-color: #219652 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
}

/* ========================================
   QUESTION & ANSWER DISPLAY
   ======================================== */

.ait-question-text {
    font-size: 20px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.ait-answer-box textarea {
    font-size: 16px;
    line-height: 1.6;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s;
}

.ait-answer-box textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ========================================
   FEEDBACK CONTAINER - MAIN WRAPPER
   ======================================== */

.ait-feedback-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    padding: 0;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ait-feedback-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
}

/* ========================================
   FEEDBACK SECTIONS - CORE STYLING
   ======================================== */

.feedback-section {
    margin: 0;
    padding: 30px 35px;
    border-left: 5px solid #e9ecef;
    background: #ffffff;
    position: relative;
    border-bottom: 1px solid #f1f3f5;
}

.feedback-section:last-child {
    border-bottom: none;
}

.feedback-section > *:first-child {
    margin-top: 0 !important;
}

.feedback-section > *:last-child {
    margin-bottom: 0 !important;
}

/* ========================================
   FEEDBACK SECTION HEADINGS
   ======================================== */

.feedback-section h4 {
    margin: 0 0 20px 0 !important;
    padding: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================
   SECTION-SPECIFIC COLORS & BACKGROUNDS
   ======================================== */

/* Grammar Section */
.feedback-section.grammar {
    background: linear-gradient(to right, #fff5f5 0%, #ffffff 100%);
    border-left-color: #dc3545;
}

.feedback-section.grammar h4 {
    color: #dc3545;
}

/* Strengths Section */
.feedback-section.strengths {
    background: linear-gradient(to right, #f0fff4 0%, #ffffff 100%);
    border-left-color: #28a745;
}

.feedback-section.strengths h4 {
    color: #28a745;
}

/* Improvements Section */
.feedback-section.improvements {
    background: linear-gradient(to right, #fff8f0 0%, #ffffff 100%);
    border-left-color: #fd7e14;
}

.feedback-section.improvements h4 {
    color: #e67e22;
}

/* Tips Section */
.feedback-section.tips {
    background: linear-gradient(to right, #f0fcff 0%, #ffffff 100%);
    border-left-color: #0dcaf0;
}

.feedback-section.tips h4 {
    color: #17a2b8;
}

/* Sample Section */
.feedback-section.sample {
    background: linear-gradient(to right, #f8f5ff 0%, #ffffff 100%);
    border-left-color: #6f42c1;
}

.feedback-section.sample h4 {
    color: #6f42c1;
}

/* ========================================
   FEEDBACK TEXT & PARAGRAPHS
   ======================================== */

.feedback-section p {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.8 !important;
    color: #2c3e50 !important;
    font-size: 16px !important;
}

.feedback-section p:last-child {
    margin-bottom: 0 !important;
}

.feedback-section strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ========================================
   LISTS (BULLETS & NUMBERED)
   ======================================== */

.feedback-section ul,
.feedback-section ol {
    margin: 15px 0 20px 0 !important;
    padding-left: 30px !important;
    list-style-position: outside;
}

.feedback-section li {
    margin-bottom: 12px !important;
    line-height: 1.7 !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    padding-left: 8px;
}

.feedback-section ul li {
    list-style-type: disc;
}

.feedback-section ol li {
    list-style-type: decimal;
}

.feedback-section li::marker {
    color: #6c757d;
    font-weight: 600;
}

/* Enhanced numbered lists */
.feedback-section ol {
    counter-reset: custom-counter;
    list-style: none !important;
    padding-left: 0 !important;
}

.feedback-section ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 55px !important;
    margin-bottom: 20px !important;
}

.feedback-section ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.feedback-section.tips ol li::before {
    background: linear-gradient(135deg, #0dcaf0 0%, #0a58ca 100%);
}

/* ========================================
   GRAMMAR ERROR DISPLAY (SPECIAL)
   ======================================== */

/* ========================================
   GRAMMAR ERROR DISPLAY (UPDATED - CLEANER DESIGN)
   ======================================== */

.grammar-errors-list {
    margin: 20px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: error-counter;
}

.grammar-error-item {
    margin-bottom: 25px !important;
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    counter-increment: error-counter;
    position: relative;
    padding-left: 65px !important;
    transition: all 0.3s ease;
}

.grammar-error-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d1d1;
}

.grammar-error-item::before {
    content: counter(error-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.grammar-error-item:last-child {
    margin-bottom: 0 !important;
}

.error-type {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.error-type strong {
    color: #2c3e50;
}

.error-original,
.error-correction {
    margin: 15px 0;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.error-original {
    background: #fef6f6;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
}

.error-correction {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-left: 4px solid #10b981;
}

.error-label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.error-original .error-label {
    background: #fee2e2;
    color: #dc2626;
}

.error-correction .error-label {
    background: #dcfce7;
    color: #059669;
}

.error-text {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.error-original .error-text {
    color: #374151;
}

.error-correction .error-text {
    color: #065f46;
}

.error-explanation {
    margin: 15px 0 0 0;
    padding: 16px 20px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

.error-explanation:before {
    content: "💡 ";
    font-size: 16px;
}

.feedback-success {
    padding: 16px 20px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 8px !important;
    color: #065f46 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

.feedback-success:before {
    content: "✅ ";
    font-size: 16px;
}

/* ========================================
   SAMPLE ANSWER STYLING
   ======================================== */

.sample-answer {
    margin: 20px 0 0 0 !important;
    padding: 25px !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    border: 2px solid #e9ecef !important;
    position: relative;
}

.sample-answer::before {
    content: "💡 Example:";
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: #6f42c1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sample-answer p {
    font-style: italic !important;
    line-height: 1.9 !important;
    color: #495057 !important;
    margin-bottom: 15px !important;
    font-size: 15px !important;
}

.sample-answer p:first-child {
    margin-top: 0;
}

.sample-answer p:last-child {
    margin-bottom: 0 !important;
}

.sample-content {
    padding: 0;
    margin: 0;
}

/* ========================================
   STRUCTURE TIP (STAR METHOD)
   ======================================== */

.structure-guide {
    margin: 15px 0;
    padding: 0;
}

.structure-item {
    margin-bottom: 20px;
    padding: 18px 22px;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #0dcaf0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 50px;
}

.structure-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #0dcaf0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(13, 202, 240, 0.3);
}

.structure-item:hover {
    background: linear-gradient(to right, #e3f2fd 0%, #f8f9fa 100%);
    border-left-width: 6px;
    transform: translateX(3px);
}

.structure-item:last-child {
    margin-bottom: 0;
}

.structure-item strong {
    display: block;
    color: #0a58ca;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.structure-item span {
    display: block;
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
}

/* STAR component colors */
.structure-item:nth-child(1) {
    border-left-color: #0d6efd;
}

.structure-item:nth-child(1)::before {
    background: #0d6efd;
}

.structure-item:nth-child(2) {
    border-left-color: #6610f2;
}

.structure-item:nth-child(2)::before {
    background: #6610f2;
}

.structure-item:nth-child(3) {
    border-left-color: #fd7e14;
}

.structure-item:nth-child(3)::before {
    background: #fd7e14;
}

.structure-item:nth-child(4) {
    border-left-color: #28a745;
}

.structure-item:nth-child(4)::before {
    background: #28a745;
}

/* ========================================
   FEEDBACK POINTS
   ======================================== */

.feedback-point {
    margin-bottom: 18px !important;
    padding: 15px 18px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 45px !important;
}

.feedback-point::before {
    content: '→';
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 20px;
    color: #0dcaf0;
    font-weight: bold;
}

.feedback-section.strengths .feedback-point::before {
    content: '✓';
    color: #28a745;
}

.feedback-section.improvements .feedback-point::before {
    content: '⚠';
    color: #fd7e14;
}

.feedback-section.tips .feedback-point::before {
    content: '💡';
}

.feedback-point:hover {
    background: rgba(0, 0, 0, 0.04);
    border-left-color: #495057;
    transform: translateX(5px);
}

.feedback-point:last-child {
    margin-bottom: 0 !important;
}

.feedback-point strong {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
}

.feedback-point span {
    display: block;
    line-height: 1.7;
    color: #495057;
    font-size: 15px;
}

/* ========================================
   QUESTION & ANSWER DISPLAY IN FEEDBACK
   ======================================== */

.feedback-question-section,
.feedback-answer-section {
    margin-bottom: 25px;
    padding: 20px 25px !important;
    border-radius: 10px;
    border: 2px solid;
    background: #ffffff !important;
}

.feedback-question-section {
    border-color: #0dcaf0;
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.1);
}

.feedback-answer-section {
    border-color: #6f42c1;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.1);
}

.feedback-question-section h5,
.feedback-answer-section h5 {
    margin: 0 0 15px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a !important;
}

.feedback-question-section h5 {
    color: #0dcaf0 !important;
}

.feedback-answer-section h5 {
    color: #6f42c1 !important;
}

.user-question-text,
.user-answer-text {
    font-style: italic;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    line-height: 1.8 !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ========================================
   CODE ELEMENTS
   ======================================== */

.feedback-section code {
    background: #DAF5F3;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    color: #000000;
    border: 1px solid #e9ecef;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.feedback-section {
    animation: fadeInUp 0.4s ease-out;
}

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

.feedback-section:nth-child(1) { animation-delay: 0s; }
.feedback-section:nth-child(2) { animation-delay: 0.1s; }
.feedback-section:nth-child(3) { animation-delay: 0.2s; }
.feedback-section:nth-child(4) { animation-delay: 0.3s; }
.feedback-section:nth-child(5) { animation-delay: 0.4s; }
.feedback-section:nth-child(6) { animation-delay: 0.5s; }

/* ========================================
   PROFILE PAGE COMPONENTS
   ======================================== */

.ait-profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.ait-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ait-avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: bold;
    margin: 0 auto 15px;
}

.ait-profile-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.ait-profile-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.ait-profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ait-stat {
    text-align: center;
}

.ait-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.ait-stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.ait-profile-actions-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ait-profile-actions-card h5 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* ========================================
   COLUMN LAYOUT (STEP 2)
   ======================================== */

.ait-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    margin-top: 0 !important;
}

.ait-column {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px !important;
}

.ait-column-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.ait-column-icon {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.ait-column h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.ait-column textarea {
    flex: 1;
    min-height: 250px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s;
}

.ait-column textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ait-column textarea::placeholder {
    color: #95a5a6;
    font-size: 14px;
}

/* ========================================
   STEP HEADER
   ======================================== */

.ait-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.ait-back-button {
    font-size: 16px;
    padding: 10px 15px;
}

.ait-profile-actions-top {
    margin-bottom: 70px !important;
    display: flex;
    gap: 15px !important;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ait-profile-actions-top .ait-button.small {
    padding: 12px 20px !important;
    font-size: 18px !important;
    margin: 0 !important;
}

/* ========================================
   SUBMIT STATUS & SPINNERS
   ======================================== */

.ait-submit-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff3e0;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
    color: #f39c12;
}

.ait-spinner-small {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f39c12;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   SESSIONS DASHBOARD
   ======================================== */

.ait-sessions-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ait-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.ait-stat-icon {
    font-size: 32px;
}

.ait-stat-content {
    display: flex;
    flex-direction: column;
}

.ait-stat-card .ait-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.ait-stat-card .ait-stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.ait-sessions-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ait-sessions-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
}

.ait-session-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
    transition: background-color 0.2s ease;
}

.ait-session-item:hover {
    background-color: #f8f9fa;
}

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

.ait-session-date {
    color: #6c757d;
    font-weight: 500;
}

.ait-session-id code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.ait-session-questions {
    color: #495057;
    font-weight: 500;
}

.ait-session-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ========================================
   PRICING TABLE
   ======================================== */

.ait-pricing-table {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ait-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.ait-pricing-header h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
}

.ait-pricing-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.ait-pricing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ait-package-option {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.ait-package-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ait-package-option.ait-popular {
    border-color: #007cba;
    position: relative;
    transform: scale(1.05);
}

.ait-package-option.ait-popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.ait-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.ait-price {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    margin: 15px 0;
}

.ait-features {
    margin: 25px 0;
    color: #555;
    line-height: 1.6;
}

.ait-feature-item {
    margin-bottom: 10px;
}

.ait-purchase-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

.ait-purchase-header {
    text-align: center;
    margin-bottom: 30px;
}

.ait-purchase-header h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.ait-purchase-footer {
    text-align: center;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.ait-redirect-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 15px;
}

.ait-redirect-notice p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.ait-currency-note {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #888;
}

/* ========================================
   BUTTONS
   ======================================== */

.ait-button {
    background: #3498db;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ait-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ait-button.secondary {
    background: #9B87A1;
}

.ait-button.secondary:hover {
    background: #7f8c8d;
}

.ait-button.small {
    padding: 10px 16px;
    font-size: 14px;
}

.ait-button.large {
    padding: 16px 32px;
    font-size: 18px;
}

.ait-button.full-width {
    width: 100%;
    margin-bottom: 10px;
}

.ait-button-icon {
    font-size: 14px;
}

.ait-button.ait-purchase-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.ait-button.ait-purchase-btn:hover {
    background: #005a87;
}

.ait-popular .ait-button.ait-purchase-btn {
    background: #28a745;
}

.ait-popular .ait-button.ait-purchase-btn:hover {
    background: #218838;
}

#ait-end-session {
    background: #6c757d;
    color: white;
}

#ait-end-session:hover {
    background: #5a6268;
}

/* ========================================
   MESSAGE STYLES
   ======================================== */

.ait-message {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.ait-error {
    border-left: 4px solid #e74c3c;
    background: #fdeded;
}

.ait-success {
    border-left: 4px solid #27ae60;
    background: #edf7ed;
}

.ait-info {
    border-left: 4px solid #3498db;
    background: #e8f4fd;
}

/* ========================================
   FADE IN ANIMATION
   ======================================== */

.ait-fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .ait-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ait-profile-container {
        grid-template-columns: 1fr;
    }
    
    .ait-sessions-header,
    .ait-session-item {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Profile columns stack on mobile */
    .ait-profile-columns {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .ait-profile-column {
        flex: 1 1 100% !important;
    }
    
    .ait-profile-option,
    .ait-profile-card {
        padding: 30px 25px !important;
    }
    
    /* Feedback sections mobile adjustments */
    .feedback-section {
        padding: 25px 20px;
    }
    
    .feedback-section h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        padding-bottom: 12px;
    }
    
    .feedback-section p,
    .feedback-section li {
        font-size: 15px !important;
    }
    
    .feedback-question-section,
    .feedback-answer-section {
        padding: 18px 20px !important;
    }
    
    .sample-answer {
        padding: 20px !important;
    }
    
    .feedback-point {
        padding: 12px 15px;
        padding-left: 35px !important;
    }
    
    .feedback-point::before {
        left: 10px;
        font-size: 16px;
    }
    
    .feedback-section ol li {
        padding-left: 45px !important;
    }
    
    .feedback-section ol li::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Fix grammar error section for mobile */
    .grammar-error-item {
        padding: 18px 15px !important;
        padding-left: 60px !important;
    }
    
    .error-original,
    .error-correction {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 15px !important;
    }
    
    .error-label {
        white-space: normal !important;
        font-size: 12px !important;
        padding: 3px 8px !important;
        text-align: center;
        width: 100%;
    }
    
    .error-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        width: 100%;
    }
    
    .error-type {
        font-size: 13px !important;
        padding: 6px 10px !important;
        margin-bottom: 12px !important;
    }
    
    .error-explanation {
        font-size: 13px !important;
        padding: 12px 15px !important;
        line-height: 1.4 !important;
    }
    
    .grammar-error-item::before {
        left: 15px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .structure-item {
        padding: 15px 18px 15px 45px;
    }
    
    .structure-item::before {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    /* Other mobile adjustments */
    .ait-columns {
        grid-template-columns: 1fr;
    }
    
    .ait-step-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .ait-sessions-stats {
        grid-template-columns: 1fr;
    }
    
    .ait-profile-stats {
        grid-template-columns: 1fr;
    }
    
    .ait-button {
        width: 100%;
        margin: 5px 0;
    }
    
    .ait-sessions-header,
    .ait-session-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ait-session-actions {
        justify-content: center;
    }
    
    .ait-pricing-options {
        flex-direction: column;
        align-items: center;
    }
    
    .ait-package-option {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .ait-package-option.ait-popular {
        transform: none;
    }
    
    .ait-package-option.ait-popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .feedback-section {
        padding: 20px 15px;
        border-left-width: 3px;
    }
    
    .feedback-section h4 {
        font-size: 16px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .feedback-section ul,
    .feedback-section ol {
        padding-left: 20px !important;
    }
    
    .error-label {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }
    
    .error-text {
        font-size: 13px !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.feedback-section:focus-within {
    outline: 2px solid #0dcaf0;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .feedback-section {
        border-left-width: 6px;
    }
    
    .feedback-section h4 {
        border-bottom-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feedback-section,
    .feedback-point,
    .ait-button {
        animation: none;
        transition: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .feedback-section {
        page-break-inside: avoid;
        border-left: 3px solid #000;
        background: #fff !important;
        box-shadow: none;
    }
    
    .feedback-section h4 {
        color: #000 !important;
    }
    
    .grammar-error-item,
    .structure-item,
    .feedback-point {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .grammar-error-item::before,
    .structure-item::before,
    .feedback-section ol li::before {
        background: #000 !important;
    }
}