* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 20px; /* Add margin around the body */
}

#auth-section, #apps-section {
    padding: 20px;
    text-align: center;
    max-width: 600px; /* Restrict max width for better readability */
    margin: 0 auto; /* Center the sections */
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

p {
    margin-top: 10px;
    font-size: 0.9em;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#apps-section {
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.app-card {
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #ddd;
    width: 250px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

.header {
    background-color: #444;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
}

.edit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.profile-section {
    padding: 20px;
}

.profile-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.profile-item a {
    text-decoration: none;
    color: #007bff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

.dark-mode {
    background-color: #333;
    color: #f0f0f0;
}

.dark-mode .profile-item {
    background-color: #444;
    color: #fff;
}
