:root {
    --bg: #020617;
    --surface: #0f172a;
    --card: #020617;
    --primary: #22c55e;
    --secondary: #38bdf8;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary-glow: rgba(34, 197, 94, 0.15);
    --secondary-glow: rgba(56, 189, 248, 0.15);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --success: #10b981;
}

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

body {
    font-family: "Inter", system-ui, Arial, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #020617 0%, #0a0f1f 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

body.dark-mode {
    --bg: #0f172a;
    --surface: #1e293b;
    --card: #020617;
    --text: #f8fafc;
    --muted: #cbd5e1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* Background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px, 50px 50px;
    z-index: -1;
    opacity: 0.5;
}

/* App Container */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    animation: fadeInUp 0.6s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-emoji {
    font-size: 2.2rem;
    -webkit-text-fill-color: initial;
}

.header-title {
    font-size: 2.5rem;
}

.datetime {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(10deg) scale(1.1);
}

/* Inputs Section */
.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.label-icon {
    font-size: 1rem;
}

.subject-input,
.search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.subject-input:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    transform: translateY(-2px);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.4;
}

.quick-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.quick-action-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
    flex: 1;
    min-width: 120px;
}

/* Attendance Section */
.attendance-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.3rem;
}

.stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    min-width: 100px;
}

.stat-label {
    color: var(--muted);
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.present-count .stat-value {
    color: var(--primary);
}

.total-count .stat-value {
    color: var(--text);
}

.absent-count .stat-value {
    color: var(--muted);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    min-height: 300px;
}

.grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Circles */
.circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.1);
    user-select: none;
}

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

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

.circle:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.circle.present {
    background: linear-gradient(145deg, var(--primary), #16a34a);
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 6px 16px var(--primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.circle.highlight {
    animation: highlightPulse 1.5s ease;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes highlightPulse {
    0%, 100% { 
        box-shadow: 
            0 6px 16px var(--primary-glow),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px var(--primary-glow),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

.grid-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.info-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--muted);
}

.info-icon {
    font-size: 1.1rem;
}

/* Console Section */
.console-section {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.console-box {
    background: rgba(15, 23, 42, 0.8);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

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

.console-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.title-icon {
    font-size: 1.2rem;
}

.console-count {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Format tags */
.format-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.format-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.format-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.format-tag-icon {
    font-size: 14px;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
}

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

.console-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.format-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: bold;
}

/* Console textarea with inline copy button */
.textarea-with-button {
    position: relative;
    display: flex;
    gap: 10px;
}

.console-textarea {
    width: 100%;
    padding: 12px 50px 12px 12px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text);
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
    transition: all 0.3s ease;
}

.console-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.copy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-icon {
    font-size: 16px;
}

/* Console actions grid layout */
.console-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.console-btn {
    min-width: auto;
    padding: 12px 15px;
    font-size: 0.9rem;
}

/* Quick copy feedback */
.copy-feedback {
    position: absolute;
    right: 8px;
    top: -25px;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* Actions Section */
.actions-section {
    animation: fadeInUp 0.6s ease 0.4s both;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.action-btn {
    min-width: 180px;
    padding: 15px 24px;
    font-size: 1rem;
}

.export-options {
    margin-top: 20px;
    text-align: center;
}

.export-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.export-summary {
    padding: 12px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
}

.export-summary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.export-summary::-webkit-details-marker {
    display: none;
}

.export-summary::after {
    content: '▼';
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.export-details[open] .export-summary::after {
    transform: rotate(180deg);
}

.export-content {
    padding: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.export-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.export-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Buttons */
button {
    padding: 14px 24px;
    border-radius: 16px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Styles */
.primary-action {
    background: linear-gradient(135deg, var(--primary), #16a34a);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.primary-action:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.secondary-action {
    background: linear-gradient(135deg, var(--secondary), #0ea5e9);
    color: white;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 6px 16px var(--secondary-glow);
}

.secondary-action:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 12px 24px var(--secondary-glow);
}

.accent-action {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.accent-action:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 12px 24px var(--accent-glow);
}

.btn-icon {
    font-size: 1.125rem;
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease 0.5s both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.footer-icon {
    font-size: 1rem;
}

.footer-separator {
    margin: 0 8px;
    opacity: 0.5;
}

#storageStatus {
    color: var(--success);
    font-weight: 500;
}

.footer-hint {
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hint-icon {
    font-size: 0.9rem;
}

.footer-actions {
    display: flex;
    gap: 10px;
}

.footer-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 300px;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--surface);
    color: var(--text);
    padding: 16px 24px;
    border-radius: 12px;
    border-left: 4px solid var(--muted);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 350px;
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    to { transform: translateX(0); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(120%); }
}

.toast.success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.9));
}

.toast.error {
    border-left-color: var(--error);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(15, 23, 42, 0.9));
}

.toast.warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.9));
}

.toast.info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(15, 23, 42, 0.9));
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #16a34a, #0ea5e9);
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
        justify-content: center;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .input-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 15px;
        max-width: 400px;
    }
    
    .circle {
        width: 50px;
        height: 50px;
        font-size: 0.875rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat {
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .console-actions,
    .quick-action-buttons,
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .console-btn,
    .quick-action-btn,
    .action-btn {
        width: 100%;
        max-width: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info {
        min-width: auto;
    }
    
    .footer-text {
        justify-content: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        max-width: none;
        animation: slideInUp 0.3s ease forwards;
    }
    
    @keyframes slideInUp {
        from { transform: translateY(-100%); }
        to { transform: translateY(0); }
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 300px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .buttons {
        gap: 10px;
    }
    
    .action-btn {
        min-width: auto;
        width: 100%;
    }
    
    .format-tags {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .app-header,
    .input-section,
    .quick-actions,
    .console-section,
    .actions-section,
    .app-footer,
    .icon-btn,
    .export-options,
    .grid-info,
    .format-tags,
    .copy-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .grid {
        grid-template-columns: repeat(6, 1fr) !important;
        max-width: none !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .circle {
        width: 40px !important;
        height: 40px !important;
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
    }
    
    .circle.present {
        background: #22c55e !important;
        color: white !important;
    }
}