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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    height: 100vh;
    position: relative;
    --bg-image: url('images/arteeo.jpg');
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

body::before {
    display: none;
}

.screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen.hidden {
    display: none;
}

.topbar {
    background: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.topbar h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1976d2;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
}

.icon-btn:hover {
    background: #f0f0f0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    position: relative;
    padding-top: 25vh;
}

.image-section {
    height: 55vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: -1;
}

.background-image {
    display: none;
}

.counter-overlay {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.content-section {
    
    background: #f5f5f5;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-name {
    background: #f5f5f5;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 4px;
}

.settings-icon {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.settings-icon:hover {
    background: rgba(255, 255, 255, 1);
}

.back-arrow {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.back-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.mobile-console {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: monospace;
    font-size: 10px;
    padding: 5px;
    max-height: 100px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.counter-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.counter {
    font-size: 96px;
    font-weight: 300;
    color: #1976d2;
    line-height: 1;
    opacity: 0.8;
}

.counter-label {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
}

.tracking-status {
    font-size: 14px;
    color: #1976d2;
    margin-top: 8px;
    font-weight: 500;
    display: block;
}

.streak-status {
    font-size: 14px;
    color: white;
    margin-top: 8px;
    font-weight: 500;
    background: rgba(25, 118, 210, 0.6);
    padding: 6px 12px;
    border-radius: 8px;
    display: block;
}

.visit-stats {
    margin: 12px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-item.dual-stat {
    gap: 24px;
}

.stat-item.dual-stat .stat-content {
    flex: 1;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
}

.stat-content {
    flex: 1;
}

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

.stat-item.dual-stat .stat-header {
    justify-content: flex-start;
    gap: 6px;
}

.stat-item.dual-stat .stat-percentage {
    margin-left: auto;
}

.stat-numbers {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stat-item.dual-stat .stat-numbers {
    font-size: 14px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stat-percentage {
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.faq-question:hover {
    color: #1976d2;
}

.faq-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.faq-answer {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.collapsed {
    max-height: 0;
}

.period-stats {
    font-size: 16px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.add-visit-btn {
    background: #64b5f6;
    color: white;
    border: none;
    padding: 16px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
}

.add-visit-btn:hover {
    background: #42a5f5;
}

.reset-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reset-btn:hover {
    background: #d32f2f;
}

.reset-btn-settings {
    background: transparent;
    color: #f44336;
    border: 1px solid #f44336;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
    transition: all 0.2s ease;
}

.reset-btn-settings:hover {
    background: #f44336;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #1976d2;
    border: 1px solid #1976d2;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #1976d2;
    color: white;
}

.hint-text {
    font-size: 11px;
    color: #999;
    margin: 8px;
    text-align: center;
}

.footer-text {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.version-info {
    text-align: center;
    font-size: 10px;
    color: #999;
    padding: 5px;
}

.version-display {
    text-align: center;
    padding: 2px;
    background: #f5f5f5;
}

.form-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.outlined-field {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s;
}

.outlined-field:focus {
    outline: none;
    border-color: #1976d2;
}

.settings-content {
    flex: 1;
    padding: 4px;
    padding-top: 80px;
    overflow-y: auto;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h3:hover {
    color: #1976d2;
}

.faq-content {
    max-height: none;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.faq-content.collapsed {
    max-height: 0;
    margin-bottom: 0;
}

#aboutInfo {
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}


#locationInfo {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.btn-primary {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
}

.btn-primary:hover {
    background: #1565c0;
}

.manual-visit-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-manual-visit {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.btn-manual-visit:hover {
    background: #1565c0;
}

.manual-visit-dropdown {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    min-width: 100px;
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1976d2;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

