body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #F7E8B2, #f7e3dd);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
    transition: background 0.5s, color 0.5s;
    line-height: 1.5em;
}

body.dark {
    background: linear-gradient(to bottom, #1e1e1e, #333333);
    color: #fff;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.logo {
    width: 100px;
    margin-bottom: 25px;
}

h1 {
    font-size: 36px;
    margin: 10px 0;
}

h2 {
    font-size: 24px;
    margin: 10px 0;
}

h3 {
    font-size: 18px;
    margin: 10px 0;
}

h4 {
    font-size: 16px;
    margin: 10px 0;
}

h5 {
    font-size: 14px;
    margin: 10px 0;
}

h6 {
    font-size: 12px;
    margin: 10px 0;
}

p {
    color: #4a4a4a;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.3;
}

body.dark p {
    color: #ccc;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.2s, color 0.5s;
}

body.dark .menu-item {
    background: #444;
    color: #fff;
}

.menu-item i {
    font-size: 20px;
    margin-right: 15px;
}

.menu-item:hover {
    background: #eee;
    transform: scale(1.02);
}

body.dark .menu-item:hover {
    background: #555;
}

.footer {
    margin-top: 40px;
    font-size: 12px;
    color: gray;
}

body.dark .footer {
    color: #aaa;
}

/* Toggle Button */
.toggle-mode {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f2711c;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-mode:hover {
    background: #d35b00;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #f2711c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-pop-in {
    animation: popIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 20px; }
    p { font-size: 13px; }
    .menu-item { padding: 10px 15px; }
    .menu-item i { font-size: 18px; margin-right: 10px; }
}

@media (max-width: 400px) {
    .logo { width: 60px; }
    h1 { font-size: 18px; }
    p { font-size: 12px; }
    .menu { gap: 10px; }
    .footer { font-size: 11px; }
}
