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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    padding: 0rem 1rem 0rem 1rem;
    background-color: #007bff10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    border-radius: 1rem;
}

.nav-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 0;
    padding-left: 0;
}

.logo {
    height: 2rem;
    width: auto;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: white;
}

.primary-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-button:hover {
    background-color: #007AFF;
}

.primary-button.active {
    background-color: #dc3545;
}

input[type="range"] {
    width: 100%;
    margin: 8px 0;
}

.balance-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.status {
    margin-top: 24px;
}

.progress-container {
    width: 100%;
    height: 2rem;
    background-color: #007bff10;
    border-radius: 1rem;
    border: 1px solid #007bff10;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #007AFF;
    transition: width 0.3s ease;
}

#statusText, #frequencyText {
    text-align: center;
    font-size: 14px;
    color: #666;
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    h1 {
        font-size: 20px;
    }
}

.status-panel {
    background: white;
    padding: 24px 16px;
    border-radius: 1rem;
    margin-bottom: 24px;
    border: 1px solid #00000010;
    text-align: center;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 1rem;
    border: 1px solid #00000010;

    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
    margin: 0 0 12px 0;
    color: #333;
}

.card .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #aaa;
}

.status-dot.running {
    background-color: #007AFF;
}

.status-dot.complete {
    background-color: #28a745;
}

.card-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #007AFF;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.card-button:hover {
    background-color: #0056b3;
}

.card-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .program-cards {
        grid-template-columns: 1fr;
    }
}

.preferences-card {
    background: #f8f9fa;
}

.preferences-card .control-group {
    margin-bottom: 20px;
}

.preferences-card .control-group:last-child {
    margin-bottom: 0;
}

.preferences-card label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.preferences-card input[type="range"] {
    width: 100%;
    margin: 8px 0;
}

.preferences-card .balance-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

#volumeValue {
    color: #666;
    font-size: 14px;
}

@media (min-width: 1024px) {
    .program-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .preferences-card {
        grid-column: 1 / -1;
        order: -1;
    }
}

.ripple-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #007AFF;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #007AFF;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: rippleEffect 2s linear infinite;
    display: none;
}

.ripple:nth-child(2) {
    animation-delay: 0.5s;
}

.ripple:nth-child(3) {
    animation-delay: 1s;
}

.ripple:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes rippleEffect {
    0% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

.ripple-container.paused .ripple {
    display: none;
}

.ripple-container:not(.paused) .ripple {
    display: block;
}

.ripple-container.paused .circle {
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.notification-text {
    display: none;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0 0 0;
    color: #007AFF;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.notification-text:not(:empty) {
    display: block;
}

.notification-text.fade {
    opacity: 0;
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0;

    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #007AFF;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-section a {
    color: #007AFF;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.app-description {
    background: white;
    border-radius: 1rem;
    border: 1px solid #00000010;
    padding: 2rem;
    margin: 2rem 0;
}

.app-description h2 {
    color: #007AFF;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.description-section:last-child {
    margin-bottom: 0;
}

.description-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.description-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature h4 {
    color: #007AFF;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.feature ul, .tips-list {
    list-style: none;
    padding: 0;
}

.feature ul li, .tips-list li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature ul li:before, .tips-list li:before {
    content: "•";
    color: #007AFF;
    position: absolute;
    left: 0.5rem;
}

@media (max-width: 768px) {
    .app-description {
        padding: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.badge p {
    color: #007AFF;
    font-size: 1rem;
    font-weight: 300;
}

.badge .olive {
    height: 3rem;
    width: auto;
}

.badge .olive-left {
    transform: rotate(-5deg);
}

.badge .olive-right {
    transform: rotate(5deg);
}

@media (max-width: 768px) {
    .badge {
        gap: 0.5rem;
    }
    
    .badge p {
        font-size: 1rem;
    }
}

.faq-section {
    background: white;
    border-radius: 1rem;
    border: 1px solid #00000010;
    padding: 2rem;
    margin: 2rem 0;
}

.faq-section h2 {
    color: #007AFF;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.faq-item h4 {
    color: #007AFF;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.faq-item p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
} 