/* Cedar Water - Random Group Generator Styles */
/* SMARTBOARD OPTIMIZED VERSION - Bolder colors, larger text, more depth */
/* Same structure, improved visibility for projection */

:root {
    /* Brighter, more saturated colors for smartboard projection */
    --primary-bg: #ffffff;
    --secondary-bg: #f0f4f8;  /* Slightly bluer, less gray */
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --accent-primary: #2563eb;  /* Brighter blue - more visible */
    --accent-hover: #1d4ed8;
    --danger: #dc2626;  /* Brighter red */
    --danger-hover: #b91c1c;
    --border: #cbd5e0;  /* Slightly darker border */
    --shadow: rgba(0, 0, 0, 0.15);  /* Deeper shadows */
    --success: #059669;  /* Brighter green */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    padding: 0;
    margin: 0;
}

/* Container for smartboard navigation - FULL WIDESCREEN */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    overflow-y: auto;
    max-height: 100vh;
    scroll-snap-type: y proximity;
}

/* Section layouts for smartboard */
#student-list-section,
#config-section,
#results-section,
#save-roster-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header - Compact design */
header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    scroll-snap-align: start;
    position: relative;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

.dice-icon {
    color: #dc2626;
}

/* Brand Watermark */
.brand-watermark {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    color: #C7EA46;
    background-color: #2D5016;
    padding: 6px 12px;
    border: 2px solid #76BA1B;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(118, 186, 27, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}

.brand-watermark-bottom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.4rem;
    color: #C7EA46;
    background-color: #2D5016;
    border: 2px solid #76BA1B;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(118, 186, 27, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}

.brand-watermark-fullscreen {
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.6rem;
    color: #C7EA46;
    background-color: #2D5016;
    padding: 10px 20px;
    border: 2px solid #76BA1B;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(118, 186, 27, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* Main Content - FULL WIDESCREEN */
main {
    padding: 0 60px 30px 60px;  /* No top padding */
    max-width: 100%;
}

/* Cards - Rounded with colored borders */
.card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin: 25px 40px 25px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    scroll-snap-align: start;
    position: relative;
    border: 4px solid;
}

/* First card sits tight against header */
.card:first-of-type {
    margin-top: 25px;
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
}

.card:first-of-type h2 {
    color: #2563eb;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

/* Step 2 - Green accent */
#student-list-section {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #ffffff 100%);
    padding: 30px 35px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#student-list-section h2 {
    color: #059669;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Step 3 - Purple accent */
#config-section {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #ede9fe 0%, #ffffff 100%);
    padding: 20px 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#config-section h2 {
    color: #7c3aed;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Step 4 - Orange accent */
#results-section {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    padding: 20px 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.card h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid currentColor;
}

.heading-description {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 700;  /* Bolder */
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.4rem;  /* Larger */
}

.input-group textarea,
.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 12px;  /* More compact padding */
    border: 3px solid var(--border);  /* Thicker border */
    border-radius: 8px;  /* More rounded */
    font-size: 1.1rem;  /* More compact text */
    font-family: inherit;
    color: var(--text-primary);
    background-color: white;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  /* Subtle depth */
}

.input-group textarea:focus,
.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);  /* Stronger focus */
}

.input-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 1rem;  /* More compact */
}

.help-text {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1.05rem;  /* Slightly smaller for compactness */
}

/* Standardized Footer Layout */
.roster-footer {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    gap: 20px;
}

.footer-left {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.footer-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-right {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.footer-right .count-badge {
    pointer-events: auto;
}

/* Secondary buttons (Paste, Clear, Edit Names) */
.secondary-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    background: white;
    border: 3px solid #3b82f6;
    color: #2563eb;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 44px;
    display: inline-flex;
    align-items: center;
}

.secondary-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Standardized Count Badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 44px;
}

/* Blue badge for roster count */
#roster-count {
    background: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Green badge for absence summary */
#absence-summary {
    background: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Buttons - Larger and more prominent */
.btn {
    padding: 16px 32px;  /* Bigger touch target */
    font-size: 1.2rem;  /* Larger text */
    font-weight: 700;  /* Bolder */
    border: none;
    border-radius: 8px;  /* More rounded */
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* Add depth */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);  /* Lift on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
}

.btn-large {
    font-size: 1.5rem;  /* Even larger */
    padding: 20px 40px;
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* Student List - Better visual hierarchy */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;  /* More compact spacing */
    margin-bottom: 0;
}

.student-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;  /* More compact padding */
    background-color: white;
    border: 3px solid var(--border);  /* Thicker border */
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  /* Add depth */
    cursor: pointer;  /* Shows it's clickable */
    user-select: none;
}

.student-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    background-color: #f0f7ff;
}

.student-item.absent {
    opacity: 0.35;
    text-decoration: line-through;
    background-color: #e0e0e0;
    border-color: #a0a0a0;
}

.student-name {
    font-weight: 600;  /* Bolder */
    font-size: 1.1rem;  /* Slightly smaller for compactness */
    color: var(--text-primary);
    user-select: none;
    pointer-events: none;  /* Click goes to parent */
}

/* Edit student name input */
.student-name-edit {
    padding: 8px 12px;
    border: 3px solid var(--accent-primary);  /* Thicker */
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: white;
    font-family: inherit;
    width: auto;
    max-width: 150px;
    min-width: 100px;
}

.student-name-edit:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-absent {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 8px 16px;  /* Larger */
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);  /* Add depth */
}

.btn-absent:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.btn-absent:focus {
    outline: 3px solid rgba(220, 38, 38, 0.4);
    outline-offset: 2px;
}

.student-item.absent .btn-absent {
    background-color: var(--success);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.student-item.absent .btn-absent:hover {
    background-color: #047857;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.student-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.student-count {
    font-size: 1.3rem;  /* Larger */
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
}

.student-count strong {
    color: var(--text-primary);
    font-size: 1.6rem;  /* Larger */
}

/* Theme Selection - Better visibility */
.theme-selection {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border);  /* Thicker */
}

.theme-selection h3 {
    font-size: 1.3rem;  /* More compact */
    margin-bottom: 10px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;  /* More spacing */
    max-width: 800px;
    margin: 0 auto;
}

.theme-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;  /* Larger touch target */
    background-color: white;
    border: 3px solid var(--border);  /* Thicker */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.theme-radio:hover {
    background-color: #eff6ff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.theme-radio input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
    width: 20px;  /* Larger */
    height: 20px;
}

.theme-radio input[type="radio"]:checked {
    accent-color: var(--accent-primary);
}

.theme-radio input[type="radio"]:checked + span {
    font-weight: 700;
    color: var(--accent-primary);
}

.theme-radio span {
    font-size: 1.15rem;  /* Larger */
    color: var(--text-primary);
    font-weight: 600;
}

/* Config section styling */
#config-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

#config-section .card h2 {
    margin-bottom: 15px;
    font-size: 2rem;  /* Larger */
}

/* Simplified Grouping Container */
.grouping-container-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.grouping-field {
    text-align: center;
}

.grouping-field label {
    display: block;
    font-size: 1.4rem;  /* More compact */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.grouping-field input[type="number"] {
    width: 250px;
    padding: 24px;
    border: 3px solid var(--border);
    border-radius: 12px;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--accent-primary);
    background-color: white;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.grouping-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 6px 16px rgba(37, 99, 235, 0.15);
}

.or-divider-large {
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;  /* Larger */
    color: var(--text-secondary);
    margin: 20px 0;
    position: relative;
}

.or-divider-large::before,
.or-divider-large::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 3px;  /* Thicker */
    background-color: var(--border);
}

.or-divider-large::before {
    left: 0;
}

.or-divider-large::after {
    right: 0;
}

/* Animation Area */
.animation-area {
    min-height: 220px;  /* Taller */
    margin-bottom: 30px;
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #e5e9ed 100%);
    border-radius: 12px;
    border: 3px dashed var(--border);  /* Thicker */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);  /* Inset shadow */
}

.name-particle {
    position: absolute;
    font-size: 1.4rem;  /* Larger */
    font-weight: 700;
    color: var(--accent-primary);
    animation: swirl 2s ease-in-out;
    pointer-events: none;
}

@keyframes swirl {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(var(--x), var(--y)) rotate(360deg) scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--final-x), var(--final-y)) rotate(720deg) scale(1);
        opacity: 1;
    }
}

/* Results Header Row */
.results-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.theme-display {
    font-size: 3.5rem;  /* Larger */
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0;
    text-align: center;
    flex: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Add depth */
}

.btn-compact {
    font-size: 1.05rem;  /* Slightly larger */
    padding: 12px 20px;
    white-space: nowrap;
}

.results-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Groups Display - FULL WIDESCREEN FOR SMARTBOARD */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));  /* Slightly wider minimum */
    gap: 30px;  /* More spacing */
    margin-bottom: 20px;
    max-width: 100%;
}

.group-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 3px solid var(--accent-primary);  /* Thicker */
    border-radius: 12px;
    padding: 25px;  /* More padding */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);  /* Deeper shadow */
    transition: all 0.2s;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.group-name {
    font-size: 1.7rem;  /* Larger */
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 18px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-primary);  /* Thicker */
}

.group-members {
    list-style: none;
}

.group-members li {
    padding: 12px 16px;  /* Larger */
    margin-bottom: 8px;
    background-color: white;
    border-radius: 8px;
    border: 2px solid var(--border);  /* Thicker */
    font-weight: 700;
    font-size: 1.2rem;  /* Larger */
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.group-members li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Save Roster Section */
#save-roster-section {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #cffafe 0%, #ffffff 100%);
    padding: 20px 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#save-roster-section h2 {
    color: #0891b2;
    font-size: 1.8rem;
}

/* Save Roster Form */
.save-form {
    max-width: 600px;
    margin: 0 auto;
}

.save-form .input-group {
    margin-bottom: 20px;
}

.save-form input[type="text"] {
    width: 100%;
    padding: 16px;  /* Larger */
    border: 3px solid var(--border);  /* Thicker */
    border-radius: 8px;
    font-size: 1.3rem;  /* Larger */
    font-family: inherit;
    color: var(--text-primary);
    background-color: white;
    transition: border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.save-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Support Us Section */
.support-us {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 40px 30px;
    margin: 40px 0 0 0;
    text-align: center;
    border-top: 3px solid var(--accent-primary);  /* Thicker */
    border-bottom: 3px solid var(--accent-primary);
}

.support-us h2 {
    color: var(--accent-primary);
    font-size: 2rem;  /* Larger */
    margin-bottom: 15px;
}

.support-us p {
    color: var(--text-secondary);
    font-size: 1.2rem;  /* Larger */
    margin-bottom: 20px;
}

.affiliate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

.affiliate-link {
    display: inline-block;
    padding: 14px 28px;  /* Larger */
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;  /* Larger */
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.affiliate-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.support-note {
    font-size: 1rem;  /* Slightly larger */
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 25px;  /* More padding */
    text-align: center;
    color: var(--text-secondary);
    border-top: 2px solid var(--border);
    font-size: 1.1rem;  /* Larger */
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grouping-container {
        flex-direction: column;
        gap: 20px;
    }

    .or-divider-vertical {
        padding: 10px 0;
    }

    .or-divider-vertical::before {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: 100%;
        height: 3px;
        transform: translateY(-50%);
    }

    .student-grid {
        grid-template-columns: 1fr;
    }

    .groups-container {
        grid-template-columns: 1fr;
    }

    main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .theme-options {
        grid-template-columns: 1fr;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility - Ensure focus is always visible */
*:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Fullscreen Presentation Mode */
.fullscreen-presentation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    z-index: 9999;
    padding: 15px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
}

.exit-fullscreen {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 18px;  /* Larger */
    font-size: 1rem;  /* Larger */
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10000;
}

.exit-fullscreen:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.05);
}

.fullscreen-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.fullscreen-header-row .btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.fullscreen-header-row .btn:hover {
    background-color: white;
}

.fullscreen-theme {
    text-align: center;
    font-size: 2.5rem;  /* Larger */
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.fullscreen-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  /* Wider */
    gap: 15px;  /* More spacing */
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-content: start;
}

.fullscreen-groups .group-card {
    background: white;
    color: var(--text-primary);
    padding: 15px;  /* More padding */
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-groups .group-name {
    font-size: 1.5rem;  /* Larger */
    color: var(--accent-primary);
    border-bottom: 3px solid var(--accent-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.fullscreen-groups .group-members {
    flex: 1;
    overflow-y: auto;
}

.fullscreen-groups .group-members li {
    font-size: 1.1rem;  /* Larger */
    padding: 8px 12px;
    margin-bottom: 4px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .btn {
        display: none;
    }

    header {
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }

    .animation-area {
        display: none;
    }

    .fullscreen-presentation {
        background: white;
        color: black;
    }

    .exit-fullscreen {
        display: none;
    }
}
