/* Sobriety Counter Styles */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.counter-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.counter-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 10px;
    display: block;
}

.counter-label {
    font-size: 1.1em;
    color: #666;
    font-weight: 600;
}

.date-picker-container {
    margin: 20px 0;
    text-align: center;
}

.date-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1em;
    margin: 0 10px;
    max-width: 200px;
}

.date-input:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
    border-color: #1a73e8;
}

.milestone-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.counter-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.counter-header img {
    height: 48px;
    margin-right: 15px;
}

.counter-header h1 {
    margin: 0;
}

.counter-summary {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

.counter-summary p {
    margin: 5px 0;
}

.counter-summary .total-summary {
    font-weight: bold;
}

.counter-summary .last-update {
    font-size: 0.9em;
}

.usage-info {
    background: #f0f7ff;
    border: 1px solid #b3d9ff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.usage-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a73e8;
    font-size: 1.1em;
}

.usage-info ul {
    margin: 0;
    padding-left: 20px;
}

.usage-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.usage-info code {
    background: #e8f0fe;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1565c0;
}

@media (max-width: 600px) {
    .counter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .counter-number {
        font-size: 2em;
    }

    .date-input {
        max-width: 100%;
        margin: 10px 0;
    }

    .date-picker-container .btn {
        margin-left: 0;
        margin-top: 10px;
    }
}