/* Fitbit Connection Page Styles */

.fitbit-connect-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.fitbit-connect-container {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fitbit-connect-content {
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.success-circle {
    stroke: #10b981;
    stroke-width: 2;
    fill: none;
    animation: drawCircle 0.6s ease forwards;
    stroke-dasharray: 238;
    stroke-dashoffset: 238;
}

.success-check {
    stroke: #10b981;
    stroke-width: 3;
    fill: none;
    animation: drawCheck 0.4s ease 0.6s forwards;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.fitbit-section {
    margin-top: 40px;
}

.fitbit-connect-box {
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.05) 0%, rgba(0, 150, 143, 0.05) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 180, 166, 0.1);
}

.sync-status-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 300px;
    text-align: left;
}

.fitbit-success-content {
    max-width: 500px;
    margin: 0 auto;
}

/* Loading animation for Fitbit connection */
.fitbit-connecting {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.fitbit-pulse {
    width: 80px;
    height: 80px;
    background: #00b4a6;
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
    margin-bottom: 20px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 166, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 180, 166, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 166, 0);
        transform: scale(1);
    }
}

.connecting-text {
    color: #4b5563;
    font-size: 1.1rem;
    animation: fadeInOut 1.5s ease infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Device preview */
.device-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.device-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.connection-arrow {
    font-size: 2rem;
    color: #9ca3af;
    animation: slideArrow 1.5s ease infinite;
}

@keyframes slideArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fitbit-connect-container {
        padding: 40px 20px;
    }
    
    .fitbit-connect-box {
        padding: 30px 20px;
    }
    
    .device-preview {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .fitbit-connect-container {
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
}