
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #5D5FEF, #7A4DFF); 
    color: #F9F9F9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background-attachment: fixed;
}

/* App Container */
.app-container {
    width: 90%;
    max-width: 700px;
    background: #1B1D2A; /* Dark mode background */
    color: #F5F5F5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header {
    background: linear-gradient(135deg, #5034F4, #5E4BDB);
    padding: 30px;
    color: #FFFFFF;
    border-bottom: 4px solid #402C96;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1rem;
    opacity: 0.85;
}

main {
    padding: 30px;
}

main h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}


.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2F2F3A; 
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1), -6px -6px 20px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.toggle:hover {
    transform: scale(1.05);
    background: #3A3A47; 
}

.toggle input {
    display: none;
}

.toggle-switch {
    width: 50px;
    height: 28px;
    background: #444444;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle input:checked + .toggle-switch {
    background: #5034F4;
}

.toggle input:checked + .toggle-switch::after {
    transform: translateX(22px);
}


button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FF5E62, #FF9966); 
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    font-weight: bold;
}

button:hover {
    background: linear-gradient(135deg, #FF9966, #FF5E62);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

footer {
    padding: 15px 20px;
    background: #2F2F3A;
    color: #B0B0B0;
    font-size: 1rem;
    border-top: 4px solid #3A3A47;
    border-radius: 0 0 20px 20px;
}

footer p {
    margin: 0;
}

footer a {
    color: #F5F5F5;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FF5E62; 
}


@media (max-width: 600px) {
    .app-container {
        width: 95%;
        padding: 15px;
    }

    header h1 {
        font-size: 1.7rem;
    }

    button {
        padding: 14px;
    }
}
