/* Reverting to previous theme and style */
body {
    background-color: #f5f5f5;
    /* Light gray background */
    font-family: 'Arial', sans-serif;
    /* Clean font */
    color: #333;
    /* Dark text */
    margin: 0;
    padding: 0;
    font-family: "Chiron Hei HK", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.logo {
    width: 160px;
}
.aedg{
    color: #155599;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 0.8em;
    font-weight: bold;
    color: #000;
    /* Black text */
    /* text-align: center; */
}

button {
    background-color: #00000000;
    /* Blue button */
    color: rgb(54, 54, 54);
    font-weight: 500;
    border: none;
    padding: 2px 6px;
    border-radius: 5px;
    /* border: rgb(54, 54, 54) 1px solid; */
    cursor: pointer;
}

#createButton {
    background-color: #414141;
    /* Blue button */
    color: rgb(255, 255, 255);
}

button:hover {
    background-color: #c5c5c5;
    /* Darker blue on hover */
}
#createButton:hover {
    background-color: #000000;
    /* Blue button */
    color: rgb(255, 255, 255);
}

input {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

input:focus {
    border-color: #007BFF;
    outline: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

table th,
table td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}
strong{
    color: #434343;
    font-weight: 700;
}
/* Update CSS for desktop layout */
@media (min-width: 768px) {
    .form {
        display: flex;
        gap: 10px;
        justify-content: space-between;
    }

    .form input {
        flex: 1;
        max-width: 600px;
    }

    .form button {
        flex-shrink: 0;
        padding: 10px 20px;
    }
}

/* Update CSS for login form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-form img {
    max-width: 180px;
    margin-bottom: 5px;
}

.login-form h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 10px 0px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #3a3a3a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #000000;
}

/* Enable scrolling for long URLs on mobile */
@media (max-width: 768px) {
    td {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
    }

    td::-webkit-scrollbar {
        height: 6px;
    }

    td::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

    td::-webkit-scrollbar-track {
        background-color: #f5f5f5;
    }
    
input {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    width: calc(100% - 20px);
}

}

/* Update CSS for better readability and line wrapping */
@media (max-width: 768px) {
    td {
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        display: block;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    td:last-child {
        border-bottom: none;
    }

    td {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Improve table readability on mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        border: none;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }

    table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        font-size: 14px;
        line-height: 1.5;
        white-space: nowrap;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        color: #333;
    }

    table td:last-child {
        border-bottom: none;
    }
}

/* Enable horizontal scrolling for original URL row */
@media (max-width: 768px) {
    td.original-url {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
    }

    td.original-url::-webkit-scrollbar {
        height: 6px;
    }

    td.original-url::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

    td.original-url::-webkit-scrollbar-track {
        background-color: #f5f5f5;
    }
}