* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

body.light-theme {
    background-color: #f0f4f8;
    color: #1a1a1a;
}

body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 400px;
    height: auto;
}

.logo-light {
    display: none;
}

body.light-theme .logo-dark {
    display: none;
}

body.light-theme .logo-light {
    display: block;
}

body.dark-theme .logo-light {
    display: none;
}

body.dark-theme .logo-dark {
    display: block;
}

.logo-link {
    text-decoration: none;
}

.container {
    background: #ffffff;
    padding: 20px;
    border: 2px solid #00d1ff;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    position: relative;
}

body.dark-theme .container {
    background: #2a2a2a !important;
    border-color: #ff00ff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00d1ff;
}

body.dark-theme h1 {
    color: #ff00ff !important;
}

h2 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #007bff;
}

body.dark-theme h2 {
    color: #ff4081 !important;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

input[type="url"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #00d1ff;
    font-size: 16px;
    box-sizing: border-box;
}

body.dark-theme input[type="url"],
body.dark-theme input[type="text"] {
    border-color: #ff00ff !important;
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}

button,
.button {
    padding: 15px 25px;
    background: #04d1ff;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-weight: bold;
    min-width: 120px;
    height: 50px;
    line-height: 16px;
    box-sizing: border-box;
    margin: 0;
}

button:hover,
.button:hover {
    background: #3089ff;
}

body.dark-theme button,
body.dark-theme .button {
    background: #ff4081 !important;
}

body.dark-theme button:hover,
body.dark-theme .button:hover {
    background: #d81b60 !important;
}

.copy-button[copied="true"] {
    background: #28a745 !important;
}

body.dark-theme .copy-button[copied="true"] {
    background: #2ecc71 !important;
}

.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    display: inline-block;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.theme-label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.theme-checkbox:checked + .theme-label {
    background: #007bff;
}

body.dark-theme .theme-label {
    background: #ff4081;
}

body.dark-theme .theme-checkbox:checked + .theme-label {
    background: #d81b60;
}

.theme-checkbox:checked + .theme-label::after {
    transform: translateX(26px);
}

body.dark-theme .theme-label::after {
    background: #e0e0e0;
}

.footer {
    background: #ffffff;
    padding: 10px 20px;
    border: 2px solid #00d1ff;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

body.dark-theme .footer {
    background: #2a2a2a !important;
    border-color: #ff00ff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

body.dark-theme .footer-links a {
    color: #ff4081 !important;
}

.footer-links a:hover {
    text-decoration: underline;
}

body.dark-theme .footer-links a:hover {
    color: #d81b60 !important;
}

.additional-footer {
    background: #f5f5f5;
    padding: 10px 20px;
    border: 2px dashed #00d1ff;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

body.dark-theme .additional-footer {
    background: #333333 !important;
    border-color: #ff00ff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.additional-footer p {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #007bff;
}

body.dark-theme .additional-footer p {
    color: #ff4081 !important;
}

.additional-footer-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

body.dark-theme .additional-footer-links a {
    color: #ff4081 !important;
}

.additional-footer-links a:hover {
    text-decoration: underline;
}

body.dark-theme .additional-footer-links a:hover {
    color: #d81b60 !important;
}

#pick_url_container {
    display: none;
}

#result {
    margin-top: 20px;
}

.info-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.info-lightbox-content {
    background: #ffffff;
    padding: 20px;
    border: 2px solid #00d1ff;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.dark-theme .info-lightbox-content {
    background: #2a2a2a !important;
    border-color: #ff00ff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
    color: #e0e0e0 !important;
}

.info-lightbox-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00d1ff;
}

body.dark-theme .info-lightbox-content h1 {
    color: #ff00ff !important;
}

.info-lightbox-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.info-lightbox-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-lightbox-content input[type="text"],
.info-lightbox-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #00d1ff;
    font-size: 16px;
    box-sizing: border-box;
}

body.dark-theme .info-lightbox-content input[type="text"],
body.dark-theme .info-lightbox-content textarea {
    border-color: #ff00ff !important;
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}

.info-lightbox-content button {
    padding: 15px 25px;
    background: #04d1ff;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

body.dark-theme .info-lightbox-content button {
    background: #ff4081 !important;
}

body.dark-theme .info-lightbox-content button:hover {
    background: #d81b60 !important;
}

.info-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

body.dark-theme .info-lightbox-close {
    color: #999 !important;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    button,
    .button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .footer,
    .additional-footer {
        padding: 10px;
    }

    .footer-links a,
    .additional-footer-links a {
        display: inline;
        margin: 0 5px;
    }

    .info-lightbox-content {
        width: 95%;
        padding: 15px;
    }

    .logo {
        max-width: 150px;
    }

    .logo-container {
        margin-top: 30px;
    }
}