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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #fff;
    padding-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #fff;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #fff;
    background-color: #333;
}

.btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background-color: #444;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    background-color: #222;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #444;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.daily-tracker {
    margin-bottom: 2rem;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(50px, auto);
    gap: 0.25rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.day-card {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    max-height: 80px;
}

.day-card:hover {
    background-color: #333;
    border-color: #fff;
}

.day-card.completed {
    border-color: #4caf50;
}

.day-card.current {
    border-color: #2196f3;
}

.day-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #4caf50, #66bb6a);
    transition: height 0.5s ease;
    z-index: 1;
    opacity: 0.7;
    border-radius: 0 0 4px 4px;
}

.day-card-content {
    position: relative;
    z-index: 2;
}

.day-card.goal-reached .day-card-progress {
    opacity: 0.8;
    background: linear-gradient(to top, #4caf50, #66bb6a);
}

.day-card.over-goal .day-card-progress {
    background: linear-gradient(to top, #388e3c, #4caf50);
    opacity: 0.9;
}

.day-number {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

.day-earnings {
    font-size: 0.6rem;
    color: #ccc;
}

.day-earnings.has-earnings {
    color: #4caf50;
    font-weight: bold;
}

.add-earnings {
    margin-bottom: 2rem;
}

.share-section {
    margin-bottom: 2rem;
}

.share-text {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.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;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .days-container {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }
    
    .day-card {
        padding: 0.5rem;
        min-height: 60px;
    }
    
    .day-number {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .day-earnings {
        font-size: 0.75rem;
    }
}
