/* Manage your Team Metabox */
#dwl_team_metabox {
    border: 1px solid #e0e5e7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #ffffff;
    overflow: hidden;
}

#dwl_team_help .postbox-header .hndle{
    color: white;
    font-weight: 600;
}

#dwl_team_metabox .postbox-header {
    background: linear-gradient(135deg, var(--wtm-primary) 0%, var(--wtm-primary-light) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
}

#dwl_team_layout .postbox-header .hndle,
#dwl_team_metabox .postbox-header .hndle{
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

#dwl_team_metabox .handlediv .toggle-indicator::before {
    color: white;
}

/* Tab Navigation */
#dwl_team_metabox .cmb-tabs {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e5e7;
    display: flex;
    margin: 0;
    padding: 0;
}

#dwl_team_metabox .cmb-tab {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: transparent;
    border: none;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

#dwl_team_metabox .cmb-tab:hover {
    background: rgba(45, 80, 22, 0.05);
    color: #2D5016;
}

#dwl_team_metabox .cmb-tab.active {
    background: white;
    color: #2D5016;
    border-bottom-color: #646970;
}

#dwl_team_metabox .cmb-tab .cmb-tab-icon {
    display: block;
    margin-bottom: 4px;
}

#dwl_team_metabox .cmb-tab .dashicons {
    font-size: 18px;
}

#dwl_team_metabox .cmb-tab .cmb-tab-title {
    font-size: 12px;
    font-weight: 600;
}

/* Form Container */
#dwl_team_metabox .cmb2-wrap {
    padding: 1.5rem;
}

/* Field Rows */
#dwl_team_metabox .cmb-row {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f1;
}

#dwl_team_metabox .cmb-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Field Layout */
#dwl_team_metabox .cmb-th {
    width: 25%;
    padding-right: 1rem;
    vertical-align: top;
}

#dwl_team_metabox .cmb-td {
    width: 75%;
}

/* Labels */
#dwl_team_metabox .cmb-th label {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
}

/* Form Controls */
#dwl_team_metabox input[type="text"],
#dwl_team_metabox input[type="number"],
#dwl_team_metabox select.cmb2_select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

#dwl_team_metabox input:focus,
#dwl_team_metabox select:focus {
    border-color: #2D5016;
    box-shadow: 0 0 0 1px #2D5016;
    outline: none;
}

/* Descriptions */
#dwl_team_metabox .cmb2-metabox-description {
    color: #646970;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

/* Multicheck Lists */
#dwl_team_metabox .cmb2-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

#dwl_team_metabox .cmb2-checkbox-list li {
    margin: 0;
    padding: 6px 10px;
    background: #f6f7f7;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

#dwl_team_metabox .cmb2-checkbox-list li:hover {
background: #5662769e;
    border-color: #566276;
    color: #fff;
}

#dwl_team_metabox .cmb2-checkbox-list input[type="checkbox"] {
    margin-right: 6px;
}

/* Toggle Button */
#dwl_team_metabox .cmb-multicheck-toggle {
  background: linear-gradient(135deg, var(--wtm-primary) 0%, var(--wtm-primary-light) 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* Checkbox Fields */
#dwl_team_metabox .cmb-type-checkbox .cmb-td {
    display: flex;
    align-items: center;
    gap: 8px;
}

#dwl_team_metabox .cmb-type-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Color Picker */
#dwl_team_metabox .wp-color-result {
    height: 32px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
}

/* Text Small Fields */
#dwl_team_metabox .cmb2-text-small {
    max-width: 150px;
}

/* CodeMirror */
#dwl_team_metabox .CodeMirror {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
    /* display: none; */
}

#dwl_team_metabox .CodeMirror-gutters{
    display: none;
}

#dwl_team_metabox .CodeMirror-linenumber{
    display: none;
}


#dwl_team_metabox .cmb2-wrap textarea.cmb2-textarea-code {
    font-family: "Courier 10 Pitch", Courier, monospace;
    line-height: 16px;
    width: 100%;
    height: 300px;
}

/* Pro Features */
#dwl_team_metabox .wptm-pro-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

#dwl_team_metabox .wptm-pro-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    #dwl_team_metabox .cmb-th,
    #dwl_team_metabox .cmb-td {
        width: 100%;
        display: block;
    }
    
    #dwl_team_metabox .cmb-th {
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    #dwl_team_metabox .cmb-tab {
        padding: 12px 8px;
    }
    
    #dwl_team_metabox .cmb-tab .cmb-tab-title {
        font-size: 11px;
    }
    
    #dwl_team_metabox .cmb2-checkbox-list {
        grid-template-columns: 1fr;
    }
}