:root {
    --bok-primary: #0073aa;
    --bok-success: #2ecc71;
    --bok-danger: #e74c3c;
    --bok-bg: #f9f9f9;
}

/* 1. Container Fixes */
.bok-main-container {
    max-width: 900px; /* Increased to give the table more room */
    margin: 20px auto;
}

.bok-wrap {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 2. Top Form Alignment */
.bok-add-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    align-items: center;
}

.bok-add-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* 3. Table Fixes - Prevent Overflow */
.bok-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* This is key to prevent stretching */
}

.bok-table th, .bok-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bok-table th { 
    background: #fafafa; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}

/* Column Widths */
.bok-table th:nth-child(1) { width: 25%; } /* Name */
.bok-table th:nth-child(2) { width: 45%; } /* Link */
.bok-table th:nth-child(3) { width: 30%; } /* Actions */

.bok-table code {
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #444;
}

/* 4. Action Buttons Alignment */
.bok-action-btns {
    display: flex;
    gap: 8px; /* Put buttons side-by-side */
    justify-content: flex-start;
}

.bok-btn {
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.bok-btn-primary { background: var(--bok-primary); color: #fff; }
.bok-btn-success { background: var(--bok-success); color: #fff; }
.bok-btn-danger { background: var(--bok-danger); color: #fff; }

.bok-btn:hover { opacity: 0.9; transform: translateY(-1px); }