* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gutenberg-blocks-settings {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
}

.gform {
    padding: 1.5rem;
    background: #f7f9fb;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.blocks-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    padding: 0.5rem 1rem;
    background: #e4e6eb;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.tab.is-active {
    background: #2271b1;
    color: #fff;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    font-size: 18px;
    color: #666;
}

.search-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + .slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(24px);
}

/* Blocks Grid */
.block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1%;
}

.block-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.block-card:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.block-toggle {
    display: flex;
    justify-content: space-between; /* Push left & right */
    align-items: center;
}

.block-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.block-info .dashicons {
    font-size: 24px;
    color: #2271b1;
}

.block-info h3 {
    margin: 0;
    font-size: 16px;
}

.description {
    margin: 0;
    font-size: 13px;
    color: #555;
}
