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

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 900px;
}

h1 {
    color: #fff;
    margin-bottom: 1.5rem;
}

h2 {
    color: #fff;
    margin: 2rem 0 1rem;
}

form {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

label {
    font-weight: 500;
    color: #aaa;
}

input,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
    background: #333;
    color: #e0e0e0;

    &:focus {
        outline: none;
        border-color: #3b82f6;
    }
}

button {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;

    &:hover {
        background: #2563eb;
    }
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;

    h1 {
        margin-bottom: 0;
    }
}

.btn-cancel {
    background: #666;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;

    &:hover {
        background: #555;
    }
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.btn-edit {
    background: #10b981;

    &:hover {
        background: #059669;
    }
}

.btn-history {
    background: #8b5cf6;

    &:hover {
        background: #7c3aed;
    }
}

.btn-restore {
    background: #f59e0b;

    &:hover {
        background: #d97706;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    thead {
        background: #333;
    }

    th {
        text-align: left;
        padding: 1rem;
        color: #aaa;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        border-bottom: 2px solid #444;
    }

    td {
        padding: 1rem;
        border-bottom: 1px solid #333;
        vertical-align: top;
    }

    tbody tr {
        &:hover {
            background: #333;
        }

        &:last-child td {
            border-bottom: none;
        }
    }
}

.cell-title {
    font-weight: 500;
    color: #fff;
}

.cell-body {
    color: #aaa;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-version {
    color: #888;
    font-family: monospace;
}

.cell-date {
    color: #888;
    font-size: 0.875rem;
    white-space: nowrap;
}

.cell-actions {
    white-space: nowrap;
}

#historySection {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #444;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;

    h2 {
        margin: 0;
    }
}

#historyTable {
    margin-top: 1rem;
}

header {
    margin-bottom: 1.5rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #555;
    border-radius: 6px;
    background: #333;
    transition: all 0.2s ease;

    svg {
        flex-shrink: 0;
    }

    &:hover {
        border-color: #3b82f6;
        background: #3b82f6;
    }
}