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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 80px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.counter-section,
.message-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.counter-section p {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

#counter {
    font-weight: bold;
    color: #667eea;
    font-size: 1.5em;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

#nameInput {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

#nameInput:focus {
    outline: none;
    border-color: #667eea;
}

.greeting {
    margin-top: 15px;
    font-size: 1.3em;
    color: #667eea;
    font-weight: 600;
    min-height: 30px;
}

/* Update banner styles */
.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

.update-banner.hidden {
    display: none;
}

.update-banner p {
    margin: 0;
    font-weight: 600;
}

.update-btn,
.dismiss-btn {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.dismiss-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.update-btn:hover,
.dismiss-btn:hover {
    transform: scale(1.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Status section styles */
.status-section {
    margin: 20px 0;
    padding: 15px;
    background: #e8eaf6;
    border-radius: 10px;
    font-size: 0.9em;
}

.status-section p {
    margin: 5px 0;
    color: #333;
}

.status-indicator {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-indicator.online {
    color: #4CAF50;
    background: #e8f5e9;
}

.status-indicator.offline {
    color: #f44336;
    background: #ffebee;
}

.cache-version {
    font-size: 0.85em;
    color: #666;
}

#cacheVersion {
    font-family: monospace;
    font-weight: bold;
    color: #667eea;
}
