/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e2f;
    color: #e0e0e0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.container {
    background-color: #2c2f3f;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    width: 100%;
}

p {
    font-size: 1rem;
    margin-bottom: 10px;
}

a {
    color: #78c6e0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.redirect-item {
    background-color: #3a3f53;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative;
    cursor: pointer; /* Make the whole item clickable */
    transition: background-color 0.3s ease; /* Add hover effect */
}

.redirect-item:hover {
    background-color: #5f6975; /* Darker background on hover */
}

#redirects-container {
    max-height: 400px; /* Set a fixed height for the container */
    overflow-y: auto;  /* Enable vertical scrolling */
    padding-right: 10px; /* Add padding on the right side to avoid content being hidden under the scrollbar */
}

.footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* Toast Notification Style */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4a90e2;
    color: white;
    padding: 15px;
    border-radius: 5px;
    display: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.toast.show {
    display: block;
}

/* Handle long URLs */
.redirect-item p {
    word-wrap: break-word; /* Break long words or URLs */
    white-space: normal; /* Allow text to wrap */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    max-width: 100%; /* Ensure it doesn't overflow */
    word-break: break-word; /* Ensures that the URL breaks into multiple lines if needed */
}

.redirect-item h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
}
