/* Body background */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #0a1e3a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* General container */
.container {
    max-width: 600px;
    width: 90%;
    padding: 20px;
    background: #14243d;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Wider admin container */
.container.wide {
    max-width: 1100px;
}

/* Title */
h1 {
    text-align: center;
    color: #00bfff;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tag {
    text-align: center;
    color: #a0c4ff;
    margin-bottom: 20px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Input bar */
form input[type="url"],
form input[type="text"] {

    height: 60px;
    padding: 15px 18px;
    font-size: 18px;
    border: 1px solid #4b6cb7;
    border-radius: 6px;
    background: #0f2240;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder colour */
::placeholder {
    color: #8aa4d6;
}

/* Buttons */
form button {
    height: 55px;
    font-size: 18px;
    background-color: #00bfff;
    border: none;
    color: #0a1e3a;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background-color: #0095d6;
}

/* Checkbox label */
form label {
    color: #fff;
}

/* Error message */
.error {
    background: #550000;
    color: #ffaaaa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Short URL result */
.result {
    background: #1e2f50;
    border: 1px solid #00bfff;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

/* Copy button layout */
.copy-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.copy-container input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #00bfff;
    border-radius: 6px;
    background: #0f2240;
    color: #fff;
}

.copy-container button {
    padding: 10px 20px;
    background-color: #00bfff;
    color: #0a1e3a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.copy-container button:hover {
    background-color: #0095d6;
}

/* Tables (admin panel) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #2a3f66;
}

table th {
    background: #1e2f50;
    color: #a0c4ff;
}

/* URL column expands nicely */
td.url {
    word-break: break-all;
}

/* Links */
a {
    color: #00bfff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }
    form button {
        width: 100%;
    }
}