/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', 'Inter', sans-serif;
}

body {
    background: rgb(239,234,124, 0.1);  /* 淡黃色背景，降低透明度 */
    color: #2d3748;
    min-height: 100vh;
}

/* Main container */
.container {
    display: none; /* Initially hide the main container */
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: 100vh;
    align-items: stretch;
    height: 100vh;          /* 讓父層本身就是滿版高度 */
    
}

/* Left panel */
.left-panel {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

/* Right panel */
.right-panel {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

/* Make all cards in left panel have consistent width */
.left-panel > * {
    width: 100%;
}

/* Logo section */
.logo-section {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Progress card specific styles */
.progress-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(220,137,69, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(241,103,111);  /* 珊瑚紅 */
}

.progress-stage {
    font-size: 1rem;
    color: #2d3748;
    margin-top: 4px;
}

.progress-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.progress-dots {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background-color 0.2s;
}

.dot.active {
    background: rgb(241,103,111);  /* 珊瑚紅 */
}

/* Argument cards */
.argument-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(220,137,69, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid #e2e8f0;
}

.argument-card.claim {
    border-left-color: rgb(241,103,111);  /* 珊瑚紅 */
}

.argument-card.evidence {
    border-left-color: rgb(220,137,69);  /* 橙色 */
}

.argument-card.reasoning {
    border-left-color: rgb(239,234,124);  /* 淡黃色 */
}

.argument-icon {
    font-size: 1.3rem;
    color: #b5b5c3;
}

.argument-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.argument-content {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.argument-content .placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Scenario card */
.scenario-card {
    display: none; /* Hide the scenario card */
}

.scenario-title {
    display: none;
}

.scenario-content {
    display: none;
}

.scenario-question {
    display: none;
}

/* Chat card */
.chat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(220,137,69, 0.1);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chat-header {
    padding: 24px;
    border-bottom: 1px solid rgba(220,137,69, 0.2);
}

.chat-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(241,103,111);  /* 珊瑚紅 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message.user {
    align-self: flex-end;
    background: rgb(239,234,124);  /* 淡黃色背景，提高易讀性 */
    color: #2d3748; /* 深灰色文字 */
    flex-direction: row-reverse;
}

.message.ai {
    align-self: flex-start;
    background: rgb(239,234,124, 0.1);  /* 淡黃色背景 */
    color: #2d3748;
}

.message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(220,137,69, 0.1);  /* 橙色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填滿容器並保持比例 */
    border-radius: 50%; /* 保持圓形 */
}

.message .meta {
    font-size: 0.85rem;
    color: #8d99ae;
    margin-bottom: 4px;
    font-weight: 600;
}

.chat-input-bar {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-bar textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.chat-input-bar textarea:focus {
    outline: none;
    border-color: rgb(241,103,111);  /* 珊瑚紅 */
}

.input-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

#char-count {
    font-size: 0.9rem;
    color: #94a3b8;
}

#send-button {
    background: rgb(241,103,111);  /* 珊瑚紅 */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

#send-button:hover {
    background: rgb(220,137,69);  /* 橙色 */
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 16px;
        gap: 24px;
    }
    
    .left-panel, .right-panel {
        flex: 0 0 100%;
    }
    
    .chat-card {
        min-height: 400px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 2rem;
}

.stage-tracker {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stage-tracker h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.stage-indicator {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stage-number {
    background-color: #3b82f6;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.stage-info {
    flex: 1;
}

.stage-info h3 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stage-description {
    background-color: white;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.stage-goal {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.stage-criteria {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.stage-progress {
    margin-top: 2rem;
}

.progress-bar {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stage-dots {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.chat-area {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80, 80, 120, 0.07);
    min-width: 400px;
    max-width: 600px;
    margin: 0 16px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        height: 100vh;
    }

    .sidebar {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
    }

    .main-content {
        height: calc(100vh - 400px);
        min-height: 400px;
    }

    .stage-tracker {
        padding: 1rem;
    }

    .stage-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stage-number {
        margin-bottom: 0.5rem;
    }

    .stage-description {
        padding: 0.5rem;
    }

    .argument-components {
        margin-top: 1rem;
        padding: 1rem;
    }

    .component-card {
        padding: 0.75rem;
    }

    .chat-container {
        height: 100%;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-input-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.75rem;
    }

    .stage-tracker {
        padding: 0.75rem;
    }

    .stage-info h3 {
        font-size: 0.875rem;
    }

    .stage-goal,
    .stage-criteria {
        font-size: 0.75rem;
    }

    .stage-dots {
        padding: 0 0.5rem;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .argument-components {
        padding: 0.75rem;
    }

    .component-card {
        padding: 0.5rem;
    }

    .component-header h3 {
        font-size: 0.875rem;
    }

    .component-content {
        font-size: 0.75rem;
    }

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

    .message {
        max-width: 90%;
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .chat-input-container textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    #send-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .main-content {
        height: 100vh;
        overflow-y: auto;
    }

    .chat-container {
        height: auto;
        min-height: 100vh;
    }

    .chat-messages {
        max-height: calc(100vh - 180px);
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stage-tracker,
    .component-card {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
}

/* Print styles */
@media print {
    .container {
        display: block;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border: none;
        padding: 0;
    }

    .main-content {
        height: auto;
    }

    .chat-input-container {
        display: none;
    }
}

.main-flex-layout {
    display: flex;
    height: 100vh;
    gap: 24px;
    padding: 32px 24px;
    box-sizing: border-box;
    justify-content: center;
}

.progress-area {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
}

.main-grid-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    grid-template-rows: 1fr;
    gap: 24px;
    height: 100vh;
    background: #f7f7fa;
}

.center-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 32px;
}

.right-sidebar {
    width: 320px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-right: 24px;
}

.right-sidebar .argument-card {
    width: 100%;
    max-width: 320px;
}

/* 其餘區塊維持原有樣式 */

@media (max-width: 1100px) {
    .main-grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 18px;
        height: auto;
    }
    .left-panel, .center-panel, .right-panel {
        align-items: center;
        padding-top: 12px;
    }
    .right-panel {
        align-items: center;
    }
    .chat-card {
        min-width: 0;
        max-width: 100vw;
    }
    .scenario-card {
        max-width: 90vw;
    }
}

@media (max-width: 700px) {
    .main-grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 0;
    }
    .left-panel, .center-panel, .right-panel {
        padding-top: 0;
        align-items: center;
    }
    .site-logo {
        max-height: 60px;
        max-width: 100%;
        object-fit: contain;
    }
    .scenario-card {
        padding: 16px 8px 12px 8px;
        font-size: 0.95rem;
    }
    .chat-card {
        min-width: 0;
        max-width: 100vw;
        height: 60vh;
    }
    .right-panel > .progress-card,
    .right-panel > .argument-card {
        max-width: 95vw;
    }
}

.topbar {
    width: 100vw;
    min-height: 64px;
    background: rgb(239,234,124, 0.2);  /* 淡黃色背景 */
    display: flex;
    align-items: center;
    padding: 0 32px;
    box-sizing: border-box;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(220,137,69, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.platform-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: rgb(241,103,111);  /* 珊瑚紅 */
    letter-spacing: 1px;
    text-shadow: 2px 3px 0 rgba(220,137,69, 0.2);
    font-family: 'Nunito Sans', 'Inter', sans-serif;
}

.main-content-layout {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: calc(100vh - 64px);
    box-sizing: border-box;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    background: #f7f7fa;
    padding: 32px 0 0 0;
}

.left-sidebar {
    width: 260px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    padding-left: 24px;
}

.center-area {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-width: 340px;
    max-width: 600px;
}

.scenario-card {
    width: 100%;
    max-width: 540px;
    margin-bottom: 0;
}

.chat-card {
    width: 100%;
    max-width: 540px;
    min-width: 340px;
    margin-top: 0;
}

.right-sidebar {
    width: 320px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-right: 24px;
}

.right-sidebar .argument-card {
    width: 100%;
    max-width: 320px;
}

/* 其餘卡片、聊天室、argument-card、progress-card等維持原有樣式 */

@media (max-width: 1100px) {
    .main-content-layout {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 12px 0 0 0;
        height: auto;
    }
    .left-sidebar, .right-sidebar {
        flex-direction: row;
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .center-area {
        min-width: 0;
        max-width: 100vw;
    }
    .scenario-card, .chat-card, .right-sidebar .argument-card {
        max-width: 95vw;
    }
}

@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 8px;
        gap: 6px;
    }
    .platform-title {
        font-size: 1.2rem;
    }
    .main-content-layout {
        flex-direction: column;
        gap: 8px;
        padding: 0;
        height: auto;
    }
    .left-sidebar, .right-sidebar {
        flex-direction: column;
        width: 100%;
        min-width: 0;
        align-items: center;
        padding: 0;
    }
    .center-area {
        min-width: 0;
        max-width: 100vw;
        gap: 8px;
    }
    .scenario-card, .chat-card, .right-sidebar .argument-card {
        max-width: 98vw;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: 220px 1fr;
    gap: 24px 24px;
    width: 100vw;
    height: 100vh;
    background: #f7f7fa;
    padding: 40px;
    box-sizing: border-box;
}

.logo-cell {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 32px;
}

.site-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.progress-cell {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.progress-card {
    width: 100%;
    min-width: 220px;
    max-width: 360px;
    margin-top: 0;
}

.argument-cell {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-end;
}

.argument-card {
    width: 100%;
    min-width: 220px;
    max-width: 360  px;
}

.scenario-cell {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.scenario-card {
    width: 100%;
    max-width: 540px;
    min-width: 320px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80, 80, 120, 0.07);
    padding: 32px 32px 28px 32px;
    margin-bottom: 0;
}

.chat-cell {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.chat-card {
    width: 100%;
    max-width: 540px;
    min-width: 320px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80, 80, 120, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    height: 60vh;
}

/* 響應式設計 */
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 24px;
        padding: 24px;
        height: auto;
    }
    .logo-cell, .progress-cell, .argument-cell, .scenario-cell, .chat-cell {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }
    .site-logo, .progress-card, .argument-card, .scenario-card, .chat-card {
        max-width: 98vw;
        min-width: 0;
    }
    .chat-card {
        height: 40vh;
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 12px;
        padding: 8px;
        height: auto;
    }
    .site-logo {
        width: 100px;
        padding: 6px 8px;
    }
    .scenario-card, .chat-card, .progress-card, .argument-card {
        max-width: 99vw;
        min-width: 0;
        padding: 12px 8px;
    }
}

/* Logo card */
.logo-card {
    width: 100%;
    height: 120px;
    background-color: rgb(239,234,124, 0.2);  /* 淡黃色背景 */
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.logo-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
} 

/* === 讓右側卡片跟著欄位寬度走 === */
.right-panel .scenario-card,
.right-panel .chat-card {
    width: 100%;      /* 填滿父層 */
    max-width: none;  /* 取消 540px 上限 */
    min-width: 0;     /* 防止老設定把卡片撐太寬 */
}

#intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 24px;
  gap: 24px;
}

.intro-image {
  max-width: 60%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%; /* Increased from 60% */
  border-radius: 12px; /* Inherit from intro-image */
  overflow: hidden; /* Hide character overflow if any */
}

.image-container .intro-image {
  width: 100%; /* Make image fill container */
  height: auto;
  border-radius: 0; /* Remove border-radius from image itself */
  box-shadow: none; /* Remove box-shadow from image itself */
}

#intro-text {
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 80%;
  min-height: 3em;
  white-space: pre-wrap;
}

#next-button {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #f1676f;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  visibility: hidden; /* Hide button initially, but keep space */
}

#next-button:enabled {
  opacity: 1;
}

#next-button:hover:enabled {
  background-color: #dc8945;
}

.character-row {
  position: absolute;
  bottom: 0; /* Position at the bottom of the container */
  left: 50%;
  transform: translateX(-50%);
  display: flex; /* Use flexbox for horizontal alignment */
  gap: 24px; /* Keep the gap between characters */
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-100%);
  align-items: flex-end; /* Align characters to the bottom */
}

.character {
    height: 200px;      /* 統一高度 */
    width: auto;        /* 自動調整寬度 */
    opacity: 0;
    transform: translateX(-100px);
    animation: slideIn 0.8s ease-out forwards;
}

.character-1 { animation-delay: 0.3s; }
.character-2 { animation-delay: 0.8s; }
.character-3 { animation-delay: 1.3s; }

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.owl-character {
    position: absolute;
    bottom: 0;
    left: 300px; /*距離背景圖左邊的距離，自行微調*/
    height: 200px;
    width: auto;
    opacity: 0;
    transform: translateY(100px);
    animation: owlSlideIn 1s ease-out forwards;
    animation-delay: 0.5s;
    pointer-events: none;
    z-index: 2;
  }
  
  

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

/* Name Input Modal */
#name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    color: rgb(241,103,111);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

#student-name-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

#student-name-input:focus {
    outline: none;
    border-color: rgb(241,103,111);
}

#start-button {
    background: rgb(241,103,111);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#start-button:hover {
    background: rgb(220,137,69);
}
