* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #1e1e1e, #2c2c2c, #3a3a3a, #1e1e1e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Poppins', sans-serif;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

h1 {
    margin-top: 2rem;
    font-size: 2rem;
    color: #f9ca24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #f0f0f0;
}

.button,
input[type="submit"] {
    margin-top: 1.2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f9ca24, #f39c12);
    border: none;
    border-radius: 8px;
    color: #1e1e1e;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.icon {
    color: #f9ca24;
}

.emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.link-url {
    color: #f9ca24;
    text-decoration: underline;
    word-break: break-all;
}

/* Error Page */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.error-container {
    text-align: center;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.error-container h2 {
    color: #f9ca24;
    font-size: 1.75rem;
    margin-top: 0.5rem;
}

.error-container p {
    margin: 1.2rem 0 2rem;
    font-size: 1rem;
    color: #ccc;
}

/* Success Page */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.success-container {
    text-align: center;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.success-container h2 {
    color: #00e676;
    font-size: 1.75rem;
    margin-top: 0.5rem;
}

.success-container p {
    margin: 1rem 0;
    font-size: 1rem;
    color: #ccc;
}

/* User Panel */
.panel-page {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

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

.greeting {
    color: #ccc;
    font-size: 1rem;
    margin: 0.5rem 0 2rem;
}

.table-wrapper {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.styled-table th,
.styled-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
}

.styled-table th {
    color: #f9ca24;
    background-color: rgba(255, 255, 255, 0.05);
}

.styled-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.link-code {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.link-code:hover {
    color: #81d4fa;
    text-shadow: 0 0 5px #4fc3f7;
}

.delete-link {
    color: #ff4d4f;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.delete-link:hover {
    color: #ff4d4f;
    text-shadow: 0 0 5px #fd7c7d;
}

.delete-link:hover {
    color: #ff7f7f;
}

/* Copy Button Styling */
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    vertical-align: middle;
}

.copy-button:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* QR Code Styling */
.qrcode-container {
    margin: 2rem auto 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qrcode-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
