/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme (default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

.app-container {
    position: relative;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
}

.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 60%;
    right: 10%;
    animation: float 25s infinite ease-in-out reverse;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: var(--success);
    bottom: 10%;
    left: 20%;
    animation: float 30s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Main App */
.app {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.logo-beta {
    background: var(--primary);
    color: white;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Status Container */
.status-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.status-glow {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: inherit;
    filter: blur(3px);
    opacity: 0.5;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
    position: relative;
}

.status-dot.ready {
    background-color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.listening {
    background-color: var(--warning);
    animation: pulse 1.5s infinite;
}

.status-dot.processing {
    background-color: var(--primary);
    animation: pulse 1s infinite;
}

.status-dot.speaking {
    background-color: var(--secondary);
    animation: pulse 0.8s infinite;
}

.status-dot.error {
    background-color: var(--error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat i {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 10px;
}

.theme-btn {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: var(--transition);
}

.theme-btn i {
    position: absolute;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-secondary);
}

.theme-btn .fa-moon {
    left: 8px;
}

.theme-btn .fa-sun {
    right: 8px;
}

.theme-slider {
    position: absolute;
    left: 4px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-slider {
    transform: translateX(30px);
}

/* Header Bottom */
.header-bottom {
    margin-top: 10px;
}

.ai-progress {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid var(--glass-border);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.connected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: progressGlow 2s infinite;
}

@keyframes progressGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-model {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

/* Chat Section */
.chat-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.chat-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

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

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-row {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.assistant {
    justify-content: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message-row.user .message-content {
    align-items: flex-end;
}

.message-row.assistant .message-content {
    align-items: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
}

.message-row.user .message-bubble {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
}

.message-bubble p {
    margin: 0;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Control Section */
.control-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.voice-control-card, .apps-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

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

.control-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
}

.visualizer-bar {
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
    animation: visualizer 1.5s infinite ease-in-out;
    opacity: 0.5;
}

.visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes visualizer {
    0%, 100% { height: 10px; }
    50% { height: 20px; }
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-btn {
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.3;
}

.btn-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    animation: pulse 2s infinite;
}

.secondary-controls {
    display: flex;
    gap: 10px;
}

.secondary-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.secondary-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint-section {
    margin-top: 20px;
}

.hint-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hint-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hint-chip {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.hint-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Apps Card */
.apps-card h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.app-btn {
    padding: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.app-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.app-btn i {
    font-size: 24px;
}

.app-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* Real-time Boxes Container */
.realtime-boxes-container {
    margin-top: auto;
}

.realtime-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.realtime-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.realtime-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.box-header i {
    font-size: 18px;
    color: var(--primary);
}

.box-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.box-content {
    flex: 1;
    margin-bottom: 15px;
}

.box-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.box-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-sublabel {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.box-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-action {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.box-action:hover {
    background: var(--primary);
    color: white;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-action-btn {
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
}

.quick-action-btn i {
    font-size: 16px;
}

.quick-action-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Box-specific colors */
.time-box {
    border-left: 3px solid #3b82f6;
}

.time-box .box-header i {
    color: #3b82f6;
}

.weather-box {
    border-left: 3px solid #10b981;
}

.weather-box .box-header i {
    color: #10b981;
}

.system-box {
    border-left: 3px solid #8b5cf6;
}

.system-box .box-header i {
    color: #8b5cf6;
}

.actions-box {
    border-left: 3px solid #f59e0b;
}

.actions-box .box-header i {
    color: #f59e0b;
}

/* Confirmation Dialog */
.confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirm-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.confirm-content i {
    font-size: 48px;
    color: var(--warning);
    margin-bottom: 20px;
}

.confirm-content p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
}

.confirm-buttons {
    display: flex;
    gap: 15px;
}

.confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-yes {
    background: var(--success);
    color: white;
}

.confirm-no {
    background: var(--error);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 15px 20px;
    margin-top: 10px;
}

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

.footer-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-stats {
    display: flex;
    gap: 20px;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-stats i {
    color: var(--primary);
}

.footer-warning {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-warning code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--primary);
}

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

.toast {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-md);
}

.toast i {
    font-size: 20px;
}

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

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .realtime-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-right {
        justify-content: space-between;
    }
    
    .main-content {
        gap: 16px;
    }
    
    .realtime-boxes {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .secondary-controls {
        flex-direction: column;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hint-chips {
        flex-direction: column;
    }
    
    .realtime-boxes {
        grid-template-columns: 1fr;
    }
}