* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

body.dark-mode {
    background: #1a1a1a;
    color: #fff;
}

.container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    transition: all 0.3s ease;
}

body.dark-mode .container {
    background: #2d2d2d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

body.dark-mode h1 {
    color: #fff;
}

.toggle-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

body.dark-mode .toggle-section {
    background: #3d3d3d;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196F3;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: #333;
}

.toggle-checkbox:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider i {
    color: white;
    font-size: 1rem;
    z-index: 1;
}

.toggle-label {
    font-size: 1rem;
    color: #666;
    transition: color 0.3s ease;
}

body.dark-mode .toggle-label {
    color: #bbb;
}

.content {
    margin-top: 2rem;
}

.content h2 {
    color: #333;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

body.dark-mode .content h2 {
    color: #fff;
}

.content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

body.dark-mode .content p {
    color: #bbb;
}

.demo-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .demo-card {
    background: #404040;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.demo-card h3 {
    color: #333;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

body.dark-mode .demo-card h3 {
    color: #fff;
}

.demo-card p {
    color: #666;
    margin-bottom: 0;
}

body.dark-mode .demo-card p {
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }

    .toggle-section {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .toggle {
        width: 50px;
        height: 28px;
    }

    .toggle-slider:before {
        height: 20px;
        width: 20px;
    }

    .toggle-checkbox:checked + .toggle-slider:before {
        transform: translateX(22px);
    }

    .toggle-slider i {
        font-size: 0.8rem;
    }
}