

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    width: 100%;
}

main {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}

.page-layout {
    display: flex;
    justify-content: center;
    width: 100%;
    /* max-width: 1200px; */
    margin: 20px auto;
    gap: 20px;
    flex-wrap: wrap;
}

.page-layout main {
    flex-grow: 1;
    min-width: 300px;
    /* max-width: 700px; */
    /* background-color: #fff; */
    padding: 20px;
    border-radius: 8px;
    border: 0px dashed #bbb;
}

.page-layout aside {
    width: 160px;
    flex-shrink: 0;
    background-color: transparent;
    padding: 10px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    min-height: 250px;
}

.left-sidebar {
    order: -1;
}
.right-sidebar {
    order: 1;
}


.ad-placeholder {
    background-color: transparent;
    border: 1px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    padding: 10px;
}

.top-ad-placeholder {
    height: 90px;
    width: 728px;
    max-width: 100%;
    margin: 10px auto;
}

.bottom-ad-placeholder {
    height: 90px;
    width: 728px;
    max-width: 100%;
    margin: 20px auto 10px auto;
}


nav {
    text-align: center;
    padding: 10px;
    background-color: transparent;
    line-height: 2.6;
}

nav a,
nav a:visited {
    text-decoration: none;
    color: #333;
    margin-right: 25px;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #d0eaff;
}

nav a.active {
    font-weight: bold;
}

nav a.logout:hover {
    background-color: #ffb3b3;
}

.logo_nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.nav_logo {

    height: auto;
    width: 200px;
    min-width: 200px;
    transform: translateY(2px);
}


footer p {
    text-align: center;
    margin-top: 50px;
    font-size: 0.8em;
    color: #666;
}


@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        align-items: center;
    }

    .page-layout aside {
        width: 100%;
        max-width: 320px;
        margin-bottom: 10px;
    }

    .left-sidebar, .right-sidebar {
        order: unset;
    }
}


.auth-container {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.auth-form-box {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.auth-form-group {
    margin-bottom: 15px;
}

.auth-form-label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

.auth-form-input {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.auth-form-input::placeholder {
    color: #d3d3d3;
    opacity: 1;
}

.auth-form-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}


.flashes {
    list-style: none;
    padding: 0;
    text-align: center;
}

.flashes li {
    color: blue;
}

.flashes li.success {
    color: green;
}

.flashes li.danger {
    color: red;
}

.flashes li.warning {
    color: orange;
}

.flashes li.info {
    color: blue;
}

.user-form {
    background-color: white;
    max-width: 700px;
    border: 0px;
}

.user-label {
    padding-left: 11px;
}

.url-input {
    min-height: 50px;
    height: auto;
    resize: vertical;
    overflow: auto;
}


.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0px;
}

.result-url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

.short-url-display {
    flex-grow: 1;
    font-size: 1.2em;
    font-weight: bold;
    word-break: break-all;
}

.copy-btn {

}

.original-url-label {
    font-weight: bold;
    margin-bottom: 5px;
    padding-top: 20px;
}

.original-url-display {
    font-size: 0.9em;
    color: #666;
    word-break: break-all;
}

.slogan {
    font-family: 'Montserrat', sans-serif;
    background-color: #d0eaff;
    text-align: center;
    font-size: 1.2em;
    color: black;
    padding: 5px;
}

.common-link {
    text-decoration: none;
}

.no-redirect {
    margin-top: 20px;
    font-size: 1.2em;
    color: black;
    padding: 5px;
    line-height: 2.6;
}

.check-box-custom {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    padding-left: 11px;
}

.check-box-custom label {
    margin: 0;
    line-height: 1.2;
}

.info-note {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 15px;
}

.info-note a {
    color: #007bff;
    text-decoration: underline;
}

.settings-text {
    margin-bottom: 15px;
}

.auth-form-button.update-button {
    background-color: #c3e6cb;
    border-color: #c3e6cb;
    color: #333;
}

.auth-form-button.delete-button {
    background-color: #ffb3b3;
    border-color: #ffb3b3;
    color: #333;
}