/**
 * Admin Meta Box Styles - SJF Core
 */
.sjf-meta-wrapper {
    margin: -6px -12px -12px -12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Status Bar */
.sjf-status-bar {
    background: #f0f6fc;
    border-bottom: 1px solid #cce5ff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.sjf-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d2327;
}
.sjf-days-left {
    background: #fff8e5;
    border: 1px solid #ffd37a;
    padding: 4px 10px;
    border-radius: 4px;
    color: #8a5b00;
    font-weight: 600;
}

/* Tabs Navigation */
.sjf-tabs-nav {
    display: flex;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    overflow-x: auto;
}
.sjf-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}
.sjf-tab-btn:hover {
    color: #135e96;
    background: #f0f0f1;
}
.sjf-tab-btn.active {
    color: #135e96;
    background: #ffffff;
    border-bottom-color: #2271b1;
}

/* Tabs Content */
.sjf-tabs-content {
    background: #ffffff;
    padding: 20px;
}
.sjf-tab-pane {
    display: none;
}
.sjf-tab-pane.active {
    display: block;
}

/* Grids */
.sjf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.sjf-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 782px) {
    .sjf-grid-2, .sjf-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Form Fields */
.sjf-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.sjf-field-group label {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}
.sjf-field-group .req {
    color: #d63638;
}
.sjf-field-group input[type="text"],
.sjf-field-group input[type="url"],
.sjf-field-group input[type="date"],
.sjf-field-group input[type="number"],
.sjf-field-group select,
.sjf-field-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.sjf-field-group input:focus,
.sjf-field-group select:focus,
.sjf-field-group textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}
.sjf-field-group small,
.sjf-field-group .description {
    color: #646970;
    font-size: 12px;
}

.sjf-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e4e7;
}
.sjf-divider {
    border: 0;
    border-top: 1px solid #e2e4e7;
    margin: 20px 0;
}
.sjf-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1d2327;
}

/* Repeaters & Tables */
.sjf-repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.sjf-table-responsive {
    overflow-x: auto;
}
.sjf-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}
.sjf-admin-table th {
    background: #f0f0f1;
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #c3c4c7;
}
.sjf-admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e4e7;
    vertical-align: middle;
}
.sjf-admin-table input[type="text"],
.sjf-admin-table input[type="url"],
.sjf-admin-table select {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    box-sizing: border-box;
}

/* Badges */
.sjf-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: #fff;
}
.sjf-badge-new {
    background: #198754;
    border: 1px solid #146c43;
    animation: sjfPulse 1.5s infinite;
}
.sjf-badge-danger {
    background: #d63638;
}
.sjf-badge-warning {
    background: #d97706;
}
.sjf-badge-muted {
    background: #6c757d;
}
.sjf-badge-active {
    background: #0d6efd;
}

@keyframes sjfPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(25, 135, 84, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}
