/*
 * Forge Business Info - Admin Styles
 */

.forgebi-admin-wrap {
    max-width: 800px;
}

/* Tabs */
.forgebi-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #c3c4c7;
    margin-bottom: 1.5em;
    margin-top: 1em;
}

.forgebi-tab {
    padding: 0.6em 1.2em;
    text-decoration: none;
    color: #50575e;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.forgebi-tab:hover {
    color: #2271b1;
}

.forgebi-tab.active {
    color: #1d2327;
    border-bottom-color: #2271b1;
}

/* Tab content */
.forgebi-tab-content {
    display: none;
}

.forgebi-tab-content.active {
    display: block;
}

/* Hours table */
.forgebi-hours-table {
    border-collapse: collapse;
}

.forgebi-hours-table thead th {
    text-align: left;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    color: #646970;
    border-bottom: 1px solid #dcdcde;
}

.forgebi-hours-table tbody td {
    padding: 0.4em 0.8em;
    vertical-align: middle;
}

.forgebi-hours-table tbody tr:nth-child(even) {
    background: #f6f7f7;
}

.forgebi-hours-table input[type="time"] {
    width: 130px;
}

/* Special hours table */
.forgebi-special-hours-table {
    border-collapse: collapse;
    width: 100%;
}

.forgebi-special-hours-table thead th {
    text-align: left;
    padding: 0.4em 0.6em;
    font-size: 0.85em;
    color: #646970;
    border-bottom: 1px solid #dcdcde;
}

.forgebi-special-hours-table tbody td {
    padding: 0.3em 0.6em;
}

.forgebi-special-hours-table input[type="text"] {
    width: 140px;
}

.forgebi-special-hours-table input[type="time"] {
    width: 120px;
}

.forgebi-remove-special {
    color: #b32d2e;
    font-weight: 700;
    cursor: pointer;
    border: none !important;
    background: none !important;
    font-size: 1.2em;
    padding: 0 0.5em !important;
}

/* Preset grid */
.forgebi-preset-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.forgebi-preset-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    padding: 1em 1.5em;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.forgebi-preset-option:hover {
    border-color: #2271b1;
}

.forgebi-preset-option input:checked + .forgebi-preset-label {
    font-weight: 700;
}

.forgebi-preset-option:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.forgebi-preset-label {
    font-size: 0.9em;
}

/* Conditional sections */
.forgebi-conditional {
    margin-left: 1em;
    padding: 1em;
    background: #f9f9f9;
    border-left: 3px solid #2271b1;
    margin-bottom: 1em;
}

/* Shortcode display */
.forgebi-tab-content code {
    background: #f0f0f1;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Instruction panels */
.forgebi-instructions {
    background: #f0f6fc;
    border: 1px solid #c3d5e8;
    border-radius: 4px;
    padding: 1em 1.25em;
    margin-bottom: 1.5em;
    font-size: 14px;
    line-height: 1.6;
}

.forgebi-instructions p {
    margin: 0.5em 0;
}

.forgebi-instructions p:first-child {
    margin-top: 0;
}

.forgebi-instructions p:last-child {
    margin-bottom: 0;
}

code.forgebi-example-code {
    display: inline-block;
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 0.4em 0.75em;
    border-radius: 3px;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
    user-select: all;
}

/* Shortcode reference table */
.forgebi-shortcode-table th,
.forgebi-shortcode-table td {
    font-size: 14px;
}
