/* ============================================
   CENTRAL PHARMA — VALIDATION SYSTEM
   Brand colours:
     Navy:    #1a1464
     Purple:  #2d0e6e
     Orange:  #f15a29
     Dark bg: #0d0b2e
   ============================================ */

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d0b2e;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.header {
    background: linear-gradient(135deg, #1a1464 0%, #2d0e6e 60%, #1a1464 100%);
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    min-height: 76px;
}

.logo h1 {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: opacity 0.2s;
}
.logo h1:hover { opacity: 0.85; }
.logo h1 span { color: #f15a29; }
.logo p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 3px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Validation toolbar (home, save, submit) ── */
.validation-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    letter-spacing: 0.3px;
}

/* Home button - tan/light brown */
.btn-home {
    background: linear-gradient(135deg, #c4a574, #a88b5a);
    color: white;
    box-shadow: 0 2px 10px rgba(196,165,116,0.4);
}
.btn-home:hover { 
    background: linear-gradient(135deg, #b89660, #967a4e); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 14px rgba(196,165,116,0.5);
}

/* Save button - orange */
.btn-save {
    background: #f15a29;
    color: white;
    box-shadow: 0 2px 10px rgba(241,90,41,0.4);
}
.btn-save:hover:not(:disabled) { 
    background: #d94d20; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 14px rgba(241,90,41,0.5);
}

/* Submit button - green */
.btn-submit-toolbar {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 2px 10px rgba(46,204,113,0.4);
}
.btn-submit-toolbar:hover:not(:disabled) { 
    background: linear-gradient(135deg, #27ae60, #1e8449); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 14px rgba(46,204,113,0.5);
}

.toolbar-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }
.toolbar-btn:active:not(:disabled) { transform: translateY(0) !important; }

@keyframes savePulse {
    0%   { box-shadow: 0 0 0 0 rgba(241,90,41,0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(241,90,41,0); }
    100% { box-shadow: 0 0 0 0 rgba(241,90,41,0); }
}
.btn-save.saving { animation: savePulse 0.6s ease; }

@keyframes submitPulse {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.btn-submit-toolbar.ready:not(:disabled) { 
    animation: submitPulse 1.5s ease-in-out infinite; 
}

/* ══════════════════════════════════════════
   HOME DASHBOARD VIEW
   ══════════════════════════════════════════ */
.home-view {
    flex: 1;
    padding: 40px 48px 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.home-hero {
    text-align: center;
    padding: 20px 0 10px;
}

.home-hero h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.home-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Primary action cards ── */
.home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s;
    border-radius: 14px;
}

.action-card:hover { transform: translateY(-3px); }
.action-card:hover::before { opacity: 1; }
.action-card:active { transform: translateY(-1px); }

.card-new {
    background: linear-gradient(135deg, #1a1464, #2d0e6e);
    border-color: rgba(241,90,41,0.4);
    box-shadow: 0 4px 24px rgba(241,90,41,0.15);
}
.card-new:hover { border-color: #f15a29; box-shadow: 0 8px 36px rgba(241,90,41,0.3); }

.card-load {
    background: linear-gradient(135deg, #0f1a3e, #152254);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.card-load:hover { border-color: rgba(255,255,255,0.35); box-shadow: 0 8px 36px rgba(0,0,0,0.35); }

.action-card-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
}

.action-card-body { flex: 1; }
.action-card-body h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; color: #fff; }
.action-card-body p  { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

.action-card-arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
    transition: all 0.2s;
    flex-shrink: 0;
}
.action-card:hover .action-card-arrow { color: rgba(255,255,255,0.8); transform: translateX(4px); }

/* ── Section headers ── */
.home-section { display: flex; flex-direction: column; gap: 14px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.refresh-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}
.refresh-btn:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); }

/* ── Session list items ── */
.session-list { display: flex; flex-direction: column; gap: 10px; }
.session-list-empty {
    padding: 24px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.session-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(26,20,100,0.5), rgba(45,14,110,0.4));
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s;
}
.session-item:hover { border-color: rgba(241,90,41,0.4); transform: translateX(4px); }

.session-item-icon { font-size: 1.6rem; flex-shrink: 0; }
.session-item-info { flex: 1; min-width: 0; }
.session-item-info h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-item-info p  { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }

.session-item-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.badge-progress  { background: rgba(241,90,41,0.2); color: #f15a29; }
.badge-awaiting  { background: rgba(46,204,113,0.2); color: #2ecc71; }
.badge-completed { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }

.session-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.session-action-btn {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-resume { background: #f15a29; color: white; }
.btn-resume:hover { background: #d94d20; }
.btn-submit-sm { background: #2ecc71; color: white; }
.btn-submit-sm:hover { background: #27ae60; }
.btn-delete { background: rgba(231,76,60,0.15); color: #e74c3c; }
.btn-delete:hover { background: rgba(231,76,60,0.3); }

/* ══════════════════════════════════════════
   VALIDATION VIEW (chat interface)
   ══════════════════════════════════════════ */
.validation-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 48px 0;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    padding-bottom: 14px;
    min-height: 0;
    scroll-behavior: smooth;
}
.chat-container::-webkit-scrollbar { width: 8px; }
.chat-container::-webkit-scrollbar-track { background: transparent; }
.chat-container::-webkit-scrollbar-thumb { background: #3a3470; border-radius: 4px; }

/* ── Messages ── */
.message { display: flex; max-width: 96%; animation: fadeSlideIn 0.25s ease; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.assistant-message { align-self: flex-start; }
.user-message      { align-self: flex-end; flex-direction: row-reverse; }

.message-content {
    padding: 20px 26px;
    border-radius: 16px;
    font-size: 18px;
    line-height: 1.78;
}

.assistant-message .message-content {
    background: #ffffff;
    color: #1a1464;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    font-weight: 500;
}
.user-message .message-content {
    background: linear-gradient(135deg, #f15a29, #d94d20);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 16px rgba(241,90,41,0.4);
    font-weight: 500;
}
.message-content p { margin: 0 0 10px; }
.message-content p:last-child { margin-bottom: 0; }

/* ── Recovery Cards ── */
.recovery-message {
    background: #ffffff !important;
    border: 2px solid #f15a29 !important;
    border-radius: 14px !important;
    color: #1a1464 !important;
}
.recovery-message h3 { color: #1a1464; font-size: 18px; margin-bottom: 12px; font-weight: 700; }
.recovery-message p  { color: #333; font-size: 15px; }
.recovery-message ul { font-size: 14.5px; color: #444; margin: 10px 0; padding-left: 22px; }
.recovery-message li { margin-bottom: 5px; }

.recovery-btn-primary {
    background: #1a1464 !important; color: white !important;
    border: none !important; padding: 10px 20px !important;
    border-radius: 7px !important; cursor: pointer !important;
    font-weight: 700 !important; font-size: 14px !important;
    transition: background 0.2s !important;
}
.recovery-btn-primary:hover { background: #2d0e6e !important; }
.recovery-btn-secondary {
    background: #e8eaf5 !important; color: #1a1464 !important;
    border: none !important; padding: 10px 20px !important;
    border-radius: 7px !important; cursor: pointer !important;
    font-weight: 700 !important; font-size: 14px !important;
}
.recovery-btn-secondary:hover { background: #d0d4ec !important; }

/* ── Progress Bar ── */
.progress-container {
    padding: 14px 18px;
    background: #1a1870;
    border-radius: 12px;
    border: 1px solid #2d2a80;
}
.progress-bar { height: 10px; background: rgba(255,255,255,0.15); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #1a1464, #f15a29); border-radius: 10px; transition: width 0.5s ease; width: 0%; }
.progress-text { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 600; text-align: center; }

/* ── Input Area ── */
.input-container {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #0d0b2e;
    position: sticky;
    bottom: 0;
}
#userInput {
    flex: 1;
    padding: 18px 22px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    font-size: 17px;
    font-family: inherit;
    color: #ffffff;
    background: #1a1870;
    resize: none;
    min-height: 100px;
    max-height: 220px;
    line-height: 1.65;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
}
#userInput:focus { outline: none; border-color: #f15a29; box-shadow: 0 0 0 4px rgba(241,90,41,0.2); }
#userInput::placeholder { color: rgba(255,255,255,0.35); }
#userInput:disabled { opacity: 0.5; }

.send-button {
    background: linear-gradient(135deg, #f15a29, #d94d20);
    color: white; border: none; border-radius: 14px;
    padding: 0 30px; height: 100px;
    font-size: 17px; font-weight: 800; cursor: pointer;
    transition: all 0.2s ease; display: flex;
    align-items: center; justify-content: center;
    gap: 8px; min-width: 110px;
    box-shadow: 0 4px 16px rgba(241,90,41,0.45);
    letter-spacing: 0.5px;
}
.send-button:hover:not(:disabled) { background: linear-gradient(135deg, #d94d20, #c44318); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(241,90,41,0.55); }
.send-button:active:not(:disabled) { transform: translateY(0); }
.send-button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.75s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   SUMMARY REPORT CARD (inline in chat)
   ══════════════════════════════════════════ */
.summary-report-card {
    align-self: stretch;
    margin: 4px 0 8px 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a1e2e 0%, #0f2d42 50%, #0a1e2e 100%);
    border: 2.5px solid #3498db;
    box-shadow: 0 0 0 1px rgba(52,152,219,0.15), 0 8px 40px rgba(52,152,219,0.25), 0 4px 20px rgba(0,0,0,0.5);
    animation: cardSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

.summary-card-inner { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.summary-card-header { display: flex; align-items: center; gap: 14px; }
.summary-card-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(52,152,219,0.18); border: 2px solid #3498db;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.summary-card-titles h3 { font-size: 1.25rem; font-weight: 800; color: #3498db; margin-bottom: 3px; }
.summary-card-titles p  { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin: 0; }
.summary-card-body { font-size: 0.97rem; color: rgba(255,255,255,0.8); line-height: 1.65; }
.summary-card-body strong { color: #fff; }

/* ══════════════════════════════════════════
   SUBMIT VALIDATION CARD (inline in chat)
   ══════════════════════════════════════════ */
.submit-validation-card {
    align-self: stretch;
    margin: 4px 0 8px 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a2e18 0%, #0f3d22 50%, #0a2e18 100%);
    border: 2.5px solid #2ecc71;
    box-shadow: 0 0 0 1px rgba(46,204,113,0.15), 0 8px 40px rgba(46,204,113,0.25), 0 4px 20px rgba(0,0,0,0.5);
    animation: cardSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}
@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.submit-validation-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #1abc9c, #2ecc71);
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.submit-card-inner { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.submit-card-header { display: flex; align-items: center; gap: 14px; }
.submit-card-check {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(46,204,113,0.18); border: 2px solid #2ecc71;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.submit-card-titles h3 { font-size: 1.25rem; font-weight: 800; color: #2ecc71; margin-bottom: 3px; }
.submit-card-titles p  { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin: 0; }
.submit-card-body { font-size: 0.97rem; color: rgba(255,255,255,0.8); line-height: 1.65; border-left: 3px solid rgba(46,204,113,0.4); padding-left: 14px; }
.submit-card-body strong { color: #fff; }
.submit-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.btn-submit-validation {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg, #2ecc71 0%, #1aab58 100%);
    color: #fff; font-size: 1.12rem; font-weight: 800;
    border: none; border-radius: 12px; cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 24px rgba(46,204,113,0.5);
    transition: all 0.22s ease;
    animation: btnPulse 2.2s ease-in-out infinite;
    white-space: nowrap;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(46,204,113,0.5); }
    50%       { box-shadow: 0 4px 40px rgba(46,204,113,0.8); }
}
.btn-submit-validation:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60 0%, #16864a 100%);
    transform: translateY(-3px); box-shadow: 0 10px 36px rgba(46,204,113,0.65); animation: none;
}
.btn-submit-validation:active:not(:disabled) { transform: translateY(-1px); }
.btn-submit-validation:disabled { background: linear-gradient(135deg, #3a5a44 0%, #2e4a38 100%); box-shadow: none; cursor: not-allowed; animation: none; opacity: 0.75; }
.submit-btn-icon { font-size: 1.3rem; }
.submit-card-note { font-size: 0.82rem; color: rgba(255,255,255,0.35); font-style: italic; margin: 0; }

/* Submitted state */
.submit-validation-card.submitted { border-color: rgba(46,204,113,0.3); background: linear-gradient(135deg, #061a0e 0%, #082010 100%); animation: none; }
.submit-validation-card.submitted::before { animation: none; background: rgba(46,204,113,0.3); }
.submitted-state { display: flex; align-items: center; gap: 16px; padding: 24px 32px; }
.submitted-icon { font-size: 2.8rem; animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.submitted-text h3 { font-size: 1.15rem; font-weight: 800; color: #2ecc71; margin-bottom: 5px; }
.submitted-text p  { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin: 0 0 4px; }

/* ══════════════════════════════════════════
   NOTIFICATIONS
   ══════════════════════════════════════════ */
.notification {
    position: fixed; bottom: 28px; right: 28px;
    padding: 14px 22px; border-radius: 10px;
    font-size: 15px; font-weight: 700; color: white;
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
    z-index: 1000; max-width: 340px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.notification.show { opacity: 1; transform: translateY(0); }
.notification-success { background: linear-gradient(135deg, #1a1464, #2d0e6e); }
.notification-error   { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.notification-info    { background: linear-gradient(135deg, #1a1464, #f15a29); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
    text-align: center; padding: 14px;
    font-size: 13px; color: rgba(255,255,255,0.3);
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #0d0b2e; letter-spacing: 0.4px;
}

/* ══════════════════════════════════════════
   AUTHOR MODAL
   ══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}
.modal-box {
    background: linear-gradient(135deg, #1a1464, #2d0e6e);
    border: 2px solid #f15a29;
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-box h3 {
    color: #f15a29;
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
}
.modal-box > p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    margin: 0 0 28px;
    line-height: 1.5;
}
.modal-field {
    margin-bottom: 18px;
}
.modal-field label {
    display: block;
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.modal-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.modal-field input:focus {
    outline: none;
    border-color: #f15a29;
    box-shadow: 0 0 0 3px rgba(241,90,41,0.2);
}
.modal-field input::placeholder { color: rgba(255,255,255,0.3); }
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}
.modal-btn-cancel {
    padding: 11px 22px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9px;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}
.modal-btn-cancel:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.modal-btn-confirm {
    padding: 11px 26px;
    background: linear-gradient(135deg, #f15a29, #d94d20);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(241,90,41,0.4);
    transition: all 0.2s;
}
.modal-btn-confirm:hover { background: linear-gradient(135deg, #d94d20, #c44318); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 700px) {
    .header { padding: 14px 18px; flex-wrap: wrap; }
    .validation-toolbar { width: 100%; justify-content: flex-end; margin-top: 10px; }
    .home-view { padding: 24px 18px 40px; }
    .home-actions { grid-template-columns: 1fr; }
    .validation-view { padding: 16px 16px 0; }
    .logo h1 { font-size: 22px; }
    .message-content { font-size: 15px; padding: 14px 16px; }
    .send-button { height: 80px; padding: 0 20px; font-size: 15px; min-width: 90px; }
    #userInput { min-height: 80px; font-size: 15px; }
    .toolbar-btn { padding: 8px 14px; font-size: 12px; }
}
