.addbc-wrap {
    background: #f5f6f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px #e6e8ef;
}

.addbc-wrap h1 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addbc-wrap p {
    color: #5c6370;
    margin-top: 0;
}

.addbc-table {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(9, 30, 66, 0.08);
    border: none;
    margin: 20px auto;
    text-align: center;
}

.addbc-table thead th {
    background: #f0f5ff;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #dbe4ff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 12px;
}

.addbc-table tbody tr:nth-child(even) {
    background: #fdfefe;
}

.addbc-table tbody tr:hover {
    background: #f5fbff;
}

.addbc-table td,
.addbc-table th {
    padding: 12px 14px;
    vertical-align: middle;
    text-align: center;
}

.addbc-table td:first-child,
.addbc-table th:first-child {
    width: 70px;
}

.addbc-table td:nth-child(2) {
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
}

.addbc-table tbody td strong {
    color: #0f172a;
}

.addbc-table tbody td:nth-child(3) {
    color: #475467;
}

.addbc-table .addbc-result {
    min-width: 180px;
}

.addbc-success {
    color: #0f9d58;
    font-weight: 600;
}

.addbc-success::before {
    content: '●';
    margin-right: 6px;
    font-size: 10px;
}

.addbc-error {
    color: #d93025;
    font-weight: 600;
}

.addbc-error::before {
    content: '●';
    margin-right: 6px;
    font-size: 10px;
}

.addbc-count {
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    background: #e3f2fd;
    border-radius: 999px;
    padding: 2px 8px;
    display: inline-block;
    min-width: 48px;
    font-size: 12px;
    line-height: 1.4;
}

.addbc-clean-btn[disabled],
#addbc-clean-all[disabled],
#addbc-refresh-counts[disabled],
#addbc-refresh-tables[disabled],
#addbc-optimize-all-tables[disabled] {
    opacity: 0.6;
}

.addbc-actions-top {
    margin-bottom: 15px;
}

.addbc-actions-top button,
.addbc-db-download button,
.addbc-optimize-btn {
    border-radius: 6px !important;
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.15);
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px !important;
    text-align: center;
}

.addbc-db-download {
    margin: 15px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

.addbc-db-download-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#addbc-download-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#addbc-download-progress .addbc-progress-track {
    flex: 1 1 auto;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

#addbc-download-progress .addbc-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: #facc15;
    border-radius: 999px;
    transition: width 0.3s ease;
    box-shadow: 0 6px 12px rgba(250, 204, 21, 0.35);
}

#addbc-download-progress .addbc-progress-label {
    min-width: 48px;
    text-align: right;
}

@keyframes addbc-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.addbc-progress.shake {
    animation: addbc-shake 0.4s ease;
}

.addbc-progress[data-progress]:not(.is-active) .addbc-progress-bar {
    width: 0%;
}

.addbc-progress.is-active .addbc-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -6px;
    width: 12px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(4px);
}

#addbc-download-db {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.addbc-db-download button:hover {
    transform: translateY(-1px);
}

#addbc-db-size {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.addbc-optimize-tab {
    margin-top: 20px;
}

.addbc-optimize-tab h2 {
    margin-top: 0;
    color: #0f172a;
}

.addbc-table-status {
    min-width: 190px;
}

.addbc-optimize-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

#addbc-tables-loading {
    margin: 20px 0;
}

#addbc-tables-list th {
    font-weight: 600;
}

#addbc-tables-list td {
    vertical-align: middle;
    text-align: center;
}

.addbc-table .button,
#addbc-tables-list .button {
    transition: all 0.18s ease;
}

.addbc-table .button:hover,
#addbc-tables-list .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.addbc-optimize-tab table tr td:nth-child(4),
.addbc-optimize-tab table tr td:nth-child(5) {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.addbc-version {
    font-size: 14px;
    color: #0ea5e9;
    font-weight: 600;
    background-color: #e0f2fe;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
}