@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display');
    font-weight: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: local('SF Pro Text');
    font-weight: normal;
}

:root {
    --animation-duration: 1.5s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.font-geist-mono {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

/* Device Buttons Styling */
.device-btn {
    transition: all 0.2s ease;
    background-color: rgba(245, 245, 247, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.device-btn:hover {
    background-color: rgba(230, 230, 230, 0.8);
}

.device-btn.active {
    background-color: #0071e3;
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Scenario Cards */
.scenario-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Power Flow Animation Elements */
.power-flow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon, .adapter-icon, .battery-icon {
    position: absolute;
}

.power-path {
    position: absolute;
    stroke-dasharray: 10;
    animation: dash var(--animation-duration) var(--animation-timing) infinite;
}

.power-path-reverse {
    animation: dash-reverse var(--animation-duration) var(--animation-timing) infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -40;
    }
}

@keyframes dash-reverse {
    to {
        stroke-dashoffset: 40;
    }
}

/* Form Elements Styling */
.form-radio {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d2d2d7;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.form-radio:checked {
    background-color: #0071e3;
    border-color: #0071e3;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Custom Switch Toggle */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

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

.switch-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d2d2d7;
    border-radius: 10px;
    transition: .4s;
}

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

input:checked + .switch-toggle-slider {
    background-color: #0071e3;
}

input:checked + .switch-toggle-slider:before {
    transform: translateX(16px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .power-flow-container {
        transform: scale(0.8);
    }
}
