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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.5;
}

.app {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    margin-bottom: 1.5rem;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
}

.subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

.create {
    margin-bottom: 2rem;
}

.shorten-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shorten-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
}

.shorten-form input:focus {
    outline: none;
    border-color: #e65f78;
}

.shorten-form button {
    padding: 0.6rem 1.25rem;
    background: #e65f78;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.shorten-form button:hover {
    opacity: 0.9;
}

.message {
    margin-top: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.message.error {
    background: rgba(200, 80, 80, 0.2);
    border: 1px solid #a44;
    color: #f88;
}

.message.success {
    background: rgba(80, 180, 80, 0.2);
    border: 1px solid #4a4;
    color: #8f8;
}

.short-result {
    margin-top: 1rem;
}

.short-result label {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.35rem;
}

.short-copy {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.short-copy input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.short-copy button {
    padding: 0.5rem 1rem;
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.short-copy button:hover {
    background: #444;
}

.list h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.empty {
    color: #888;
    padding: 1.5rem;
    background: #252525;
    border-radius: 8px;
    border: 1px dashed #444;
}

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

.links-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.links-table th,
.links-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.links-table th {
    color: #aaa;
    font-weight: 600;
}

.links-table a {
    color: #e65f78;
    text-decoration: none;
}

.links-table a:hover {
    text-decoration: underline;
}

.links-table .long-url {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.links-table .copy-row {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    background: #333;
    color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.links-table .copy-row:hover {
    background: #444;
}

@media (max-width: 640px) {
    .shorten-form {
        flex-direction: column;
    }
    .shorten-form input {
        min-width: 0;
    }
}
