/* --- Global Wrapper --- */
.stm-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Admin Bar --- */
.stm-admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

/* Search Section Styles */
.stm-search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.stm-search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.stm-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.stm-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.stm-search-results-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.stm-search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.stm-search-result-item:hover {
    background-color: #f8f9fa;
}

.stm-search-result-item:last-child {
    border-bottom: none;
}

.stm-search-result-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.stm-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-search-result-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.stm-search-result-info p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
}

.stm-search-loading,
.stm-search-no-results,
.stm-search-error {
    padding: 20px;
    text-align: center;
    color: #666;
}

.stm-search-loading {
    color: #007cba;
}

.stm-search-error {
    color: #dc3232;
}

/* --- Team Group Controls --- */
.stm-group-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.stm-group-select {
    padding: 10px 15px;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.stm-group-select:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stm-group-select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.stm-add-group-btn {
    white-space: nowrap;
}

/* --- Empty State --- */
.stm-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px dashed #bae6fd;
}

.stm-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.stm-empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 15px 0;
}

.stm-empty-state p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.stm-btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

/* --- Buttons (UPDATED with shadow) --- */
.stm-btn,
.stm-btn-icon {
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Added Shadow */
}

.stm-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.stm-btn-orange {
    background-color: #f59e0b;
    color: #fff;
}

.stm-btn-orange:hover {
    background-color: #d97706;
}

.stm-btn-green {
    background-color: #10b981;
    color: #fff;
}

.stm-btn-green:hover {
    background-color: #059669;
}

.stm-btn-red {
    background-color: #ef4444;
    color: #fff;
}

.stm-btn-red:hover {
    background-color: #dc2626;
}

.stm-btn-icon {
    padding: 5px 8px;
    font-size: 16px;
    background: #eee;
    color: #555;
}

.stm-btn-icon:hover {
    background: #ddd;
}

.stm-btn-icon.stm-btn-red {
    background: #fee2e2;
    color: #ef4444;
}

.stm-btn-icon.stm-btn-red:hover {
    background: #ef4444;
    color: #fff;
}

/* --- Tab Navigation (UPDATED) --- */
.stm-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

/* Tab Style: Classic (Default) */
.stm-tab-style-classic .stm-tab-link {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: -2px;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tab Style: Rounded Pills */
.stm-tab-style-pills .stm-tab-link {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stm-tab-style-pills .stm-tab-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stm-tab-style-pills {
    border-bottom: none;
    padding-bottom: 10px;
}

/* Tab Style: Minimal Underline */
.stm-tab-style-underline .stm-tab-link {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
    margin-right: 15px;
    margin-bottom: -2px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stm-tab-style-underline .stm-tab-link:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

/* Tab Style: Boxed with Depth */
.stm-tab-style-boxed .stm-tab-link {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 14px 22px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stm-tab-style-boxed .stm-tab-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stm-tab-style-boxed {
    border-bottom: none;
    padding-bottom: 10px;
}

/* Tab Style: Modern Gradient */
.stm-tab-style-gradient .stm-tab-link {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stm-tab-style-gradient .stm-tab-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stm-tab-style-gradient .stm-tab-link.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.stm-tab-style-gradient {
    border-bottom: none;
    padding-bottom: 10px;
}

/* Common tab link styles (fallback for when no specific style class) */
.stm-tab-link {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: -2px;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Active/Hover colors are injected from PHP */

/* Tab drag handle and edit icon - hidden by default */
.stm-tab-drag-handle,
.stm-tab-edit-icon {
    display: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.stm-tab-drag-handle:hover,
.stm-tab-edit-icon:hover {
    opacity: 1;
}

.stm-tab-drag-handle {
    cursor: move;
    font-size: 18px;
}

.stm-tab-edit-icon {
    font-size: 14px;
    margin-left: auto;
}

/* Show drag handles and edit icons in edit mode */
.stm-edit-mode .stm-tab-drag-handle,
.stm-edit-mode .stm-tab-edit-icon {
    display: inline-block;
}

/* Tab name editing state */
.stm-tab-name[contenteditable="true"] {
    background: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    outline: 2px solid #f59e0b;
}

/* Sortable placeholder for tabs */
.stm-tabs-nav .ui-sortable-placeholder {
    background: #e0e0e0;
    border: 2px dashed #999;
    visibility: visible !important;
    height: 40px;
    margin-right: 5px;
}

/* --- Tab Content & Transitions (UPDATED) --- */
.stm-tabs-content {
    position: relative;
}

.stm-tab-pane {
    display: none;
}

.stm-tab-pane.active {
    display: block;
}

/* Transition: Fade */
.stm-transition-fade .stm-tab-pane {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.stm-transition-fade .stm-tab-pane.active {
    display: block;
    opacity: 1;
}

/* Transition: Slide */
.stm-transition-slide .stm-tabs-content {
    overflow: hidden;
}

.stm-transition-slide .stm-tab-pane {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.stm-transition-slide .stm-tab-pane.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Transition: Zoom In */
.stm-transition-zoom .stm-tabs-content {
    overflow: hidden;
}

.stm-transition-zoom .stm-tab-pane {
    display: block;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.stm-transition-zoom .stm-tab-pane.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

/* Transition: Slide Left */
.stm-transition-slideleft .stm-tabs-content {
    overflow: hidden;
}

.stm-transition-slideleft .stm-tab-pane {
    display: block;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.stm-transition-slideleft .stm-tab-pane.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

/* Transition: Flip */
.stm-transition-flip .stm-tabs-content {
    overflow: hidden;
    perspective: 1000px;
}

.stm-transition-flip .stm-tab-pane {
    display: block;
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transform-origin: center;
}

.stm-transition-flip .stm-tab-pane.active {
    opacity: 1;
    transform: rotateY(0);
    position: relative;
}

/* --- Grid System --- */
.stm-grid {
    display: grid;
    gap: 20px;
}

.stm-grid-cols-1 {
    grid-template-columns: 1fr;
}

.stm-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stm-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stm-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stm-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {

    .stm-grid-cols-3,
    .stm-grid-cols-4,
    .stm-grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .stm-grid-cols-2,
    .stm-grid-cols-3,
    .stm-grid-cols-4,
    .stm-grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .stm-grid-cols-1,
    .stm-grid-cols-2,
    .stm-grid-cols-3,
    .stm-grid-cols-4,
    .stm-grid-cols-5 {
        grid-template-columns: 1fr;
    }
}


/* --- ================================== --- */
/* --- Card Styles (All New & Renamed) --- */
/* --- ================================== --- */

/* --- Base Card (Common styles) --- */
.stm-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    /* User 10px radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stm-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stm-card-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #111;
}

.stm-card-position {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin: 0 0 15px 0;
}

.stm-card-socials {
    margin-bottom: 15px;
}

.stm-card-admin {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

/* Card drag handle - hidden by default */
.stm-card-drag-handle {
    display: none;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    cursor: move;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stm-card-drag-handle .stm-drag-icon {
    font-size: 20px;
    display: block;
}

/* Show drag handle in edit mode */
.stm-edit-mode .stm-card-drag-handle {
    display: block;
}

.stm-edit-mode .stm-card:hover .stm-card-drag-handle {
    opacity: 1;
}

/* Edit mode visual indicators */
.stm-edit-mode .stm-card {
    border: 2px dashed #ccc;
    cursor: move;
}

.stm-edit-mode .stm-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Sortable placeholder for cards */
.stm-grid .ui-sortable-placeholder {
    background: #f0f0f0;
    border: 2px dashed #999;
    visibility: visible !important;
    border-radius: 10px;
}

/* Sortable helper (dragging card) */
.stm-grid .ui-sortable-helper {
    opacity: 0.8;
    transform: rotate(2deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Edit mode notification */
.stm-edit-mode-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.stm-edit-mode .stm-edit-mode-notice {
    display: block;
}


/* --- Style: Square Profile (Was Style 1) --- */
/* FIXED: Removed negative margin, adjusted padding, ensured full image visibility */
.stm-card-style-square {
    padding-top: 30px;
    /* Extra padding at top for image */
    overflow: visible;
    /* Allow image to extend beyond card */
}

.stm-card-style-square .stm-card-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
    /* Removed negative margin */
    border-radius: 12px;
    /* Slightly larger radius for modern look */
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow */
    position: relative;
    background: #f5f5f5;
    /* Fallback background */
    overflow: hidden;
}

.stm-card-style-square .stm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    /* Remove any inline spacing */
}

/* Use text-based links with improved styling */
.stm-card-style-square .stm-card-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stm-card-style-square .stm-social-link {
    font-size: 0.75rem;
    color: #fff;
    background: #777;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stm-card-style-square .stm-social-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stm-card-style-square .stm-social-facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.stm-card-style-square .stm-social-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.stm-card-style-square .stm-social-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.stm-card-style-square .stm-social-instagram {
    background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
}


/* --- Style: Round Profile (Was Style 2) --- */
/* FIXED: Removed negative margin, adjusted padding, ensured full image visibility */
/* Add a font for icons */
@font-face {
    font-family: 'stm-icon-font';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.stm-icon-font {
    font-family: 'stm-icon-font';
    font-style: normal;
}

.stm-card-style-round {
    padding-top: 30px;
    /* Extra padding at top for image */
    overflow: visible;
    /* Allow image to extend beyond card */
}

.stm-card-style-round .stm-card-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
    /* Removed negative margin */
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow */
    position: relative;
    background: #f5f5f5;
    /* Fallback background */
    overflow: hidden;
}

.stm-card-style-round .stm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    /* Remove any inline spacing */
}

/* Use icon-based links with improved styling */
.stm-card-style-round .stm-card-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.stm-card-style-round .stm-social-icon-link {
    font-size: 18px;
    color: #fff;
    background: #555;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stm-card-style-round .stm-social-icon-link:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.stm-card-style-round .stm-social-facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.stm-card-style-round .stm-social-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.stm-card-style-round .stm-social-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.stm-card-style-round .stm-social-instagram {
    background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
}


/* --- Style: Cover Banner (Was Style 3) --- */
.stm-card-style-cover {
    padding: 0;
    border-radius: 10px;
}

/* No padding on main card */
.stm-card-style-cover .stm-card-cover {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
}

.stm-card-style-cover .stm-card-image {
    width: 140px;
    height: 140px;
    margin: -70px auto 15px auto;
    /* Overlay effect */
    border-radius: 50%;
    /* Round */
    border: 6px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.stm-card-style-cover .stm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Frame effect */
    border-radius: 50%;
    /* Round */
}

.stm-card-style-cover .stm-card-content {
    padding: 0 20px 20px 20px;
}

/* Add padding only to content */
/* Use same social icons as Round Style, but different colors */
.stm-card-style-cover .stm-card-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.stm-card-style-cover .stm-social-icon-link {
    font-size: 16px;
    color: #777;
    background: #f0f0f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.stm-card-style-cover .stm-social-icon-link:hover {
    background: #e0e0e0;
    color: #333;
}


/* --- ================================== --- */
/* --- NEW CARD STYLES (Part 2) --- */
/* --- ================================== --- */

/* --- Style: Modern Gradient (Style 4) --- */
.stm-card-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px 20px;
    overflow: visible;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stm-card-style-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.stm-card-style-gradient .stm-card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.stm-card-style-gradient .stm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.stm-card-style-gradient .stm-card-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stm-card-style-gradient .stm-card-position {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
}

.stm-card-style-gradient .stm-card-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.stm-card-style-gradient .stm-social-icon-link {
    font-size: 16px;
    color: #667eea;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stm-card-style-gradient .stm-social-icon-link:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.stm-card-style-gradient .stm-btn-orange {
    background: #fff;
    color: #667eea;
    font-weight: 600;
}

.stm-card-style-gradient .stm-btn-orange:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}


/* --- Style: Minimal Flat (Style 5) --- */
.stm-card-style-minimal {
    background: #fff;
    border: 2px solid #e5e7eb;
    padding: 40px 25px 25px;
    overflow: visible;
    transition: all 0.3s ease;
}

.stm-card-style-minimal:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.stm-card-style-minimal .stm-card-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.stm-card-style-minimal .stm-card-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.stm-card-style-minimal:hover .stm-card-image::after {
    left: 100%;
}

.stm-card-style-minimal .stm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.stm-card-style-minimal .stm-card-name {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stm-card-style-minimal .stm-card-position {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stm-card-style-minimal .stm-card-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.stm-card-style-minimal .stm-social-icon-link {
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stm-card-style-minimal .stm-social-icon-link:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
}

.stm-card-style-minimal .stm-btn-orange {
    background: #3b82f6;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stm-card-style-minimal .stm-btn-orange:hover {
    background: #2563eb;
}


/* --- Style: Corporate Professional (Style 6) --- */
.stm-card-style-corporate {
    background: #fff;
    border-left: 5px solid #059669;
    padding: 30px 25px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stm-card-style-corporate:hover {
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.2);
    border-left-width: 8px;
}

.stm-card-style-corporate .stm-card-image {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 8px;
    border: 3px solid #059669;
    overflow: hidden;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.stm-card-style-corporate .stm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.stm-card-style-corporate .stm-card-name {
    color: #065f46;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stm-card-style-corporate .stm-card-position {
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.stm-card-style-corporate .stm-card-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stm-card-style-corporate .stm-social-link {
    font-size: 11px;
    color: #fff;
    background: #059669;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stm-card-style-corporate .stm-social-link:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.stm-card-style-corporate .stm-social-facebook {
    background: #3b5998;
}

.stm-card-style-corporate .stm-social-facebook:hover {
    background: #2d4373;
}

.stm-card-style-corporate .stm-social-twitter {
    background: #1da1f2;
}

.stm-card-style-corporate .stm-social-twitter:hover {
    background: #0c85d0;
}

.stm-card-style-corporate .stm-social-linkedin {
    background: #0077b5;
}

.stm-card-style-corporate .stm-social-linkedin:hover {
    background: #005582;
}

.stm-card-style-corporate .stm-social-instagram {
    background: #e1306c;
}

.stm-card-style-corporate .stm-social-instagram:hover {
    background: #c13584;
}

.stm-card-style-corporate .stm-btn-orange {
    background: #059669;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stm-card-style-corporate .stm-btn-orange:hover {
    background: #047857;
}


/* --- Modal & Form (from v1.1) --- */
.stm-modal-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.stm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stm-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.stm-modal-close:hover,
.stm-modal-close:focus {
    color: black;
    text-decoration: none;
}

#stm-modal-body h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-size: 1.5rem;
}

#stm-modal-body .stm-bio-content p {
    line-height: 1.6;
    font-size: 1rem;
}

.stm-modal-loading #stm-modal-body {
    text-align: center;
    font-size: 1.2rem;
    padding: 50px 0;
    color: #777;
}

.stm-form-field {
    margin-bottom: 15px;
}

.stm-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.stm-form-field input[type="text"],
.stm-form-field input[type="url"],
.stm-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.stm-form-field .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.stm-form-checkboxes label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

.stm-form-checkboxes input {
    margin-right: 5px;
}

.stm-form-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.stm-form-message {
    font-weight: 600;
}

.stm-form-message.success {
    color: #059669;
}

.stm-form-message.error {
    color: #dc2626;
}

/* --- Profile Picture Management in Modal --- */
.stm-profile-picture-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.stm-profile-picture-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stm-profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-profile-picture-preview .stm-no-image {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.stm-profile-picture-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* --- Category Creation Section --- */
.stm-category-creation-section {
    margin: 20px 0;
    padding: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 5px;
}

.stm-category-creation-section h4 {
    margin: 0 0 10px 0;
    color: #0369a1;
}

.stm-category-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stm-category-input-group input {
    flex: 1;
}

.stm-category-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.stm-category-message.success {
    color: #059669;
}

.stm-category-message.error {
    color: #dc2626;
}

/* --- Frontend Settings Modal Styles --- */
/* Enhanced modern design for settings modal */

.stm-settings-form {
    max-width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
}

.stm-settings-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #f59e0b;
    transition: all 0.3s ease;
}

.stm-settings-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stm-settings-section:last-of-type {
    margin-bottom: 0;
}

.stm-settings-section h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stm-settings-section h3::before {
    content: '⚙';
    font-size: 24px;
    color: #f59e0b;
}

.stm-section-desc {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 34px;
}

/* Card Style Grid - Enhanced */
.stm-card-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.stm-style-option {
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.stm-style-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stm-style-option:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    transform: translateY(-3px);
}

.stm-style-option:hover::before {
    transform: scaleX(1);
}

.stm-style-option input[type="radio"] {
    display: none;
}

.stm-style-option input[type="radio"]:checked+.stm-style-preview {
    position: relative;
}

.stm-style-option input[type="radio"]:checked+.stm-style-preview::before {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.stm-style-option input[type="radio"]:checked {
    &+.stm-style-preview {
        border-left: none;
        padding-left: 0;
    }
}

.stm-style-option:has(input[type="radio"]:checked) {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.stm-style-option:has(input[type="radio"]:checked)::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(1);
}

.stm-style-preview {
    position: relative;
}

.stm-style-preview strong {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.stm-style-preview p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Form Rows and Columns - Enhanced */
.stm-form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stm-form-col {
    flex: 1;
    min-width: 220px;
    background: #f9fafb;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stm-form-col:hover {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.stm-form-col label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stm-form-col input[type="text"],
.stm-form-col input[type="number"],
.stm-form-col select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
}

.stm-form-col input[type="text"]:focus,
.stm-form-col input[type="number"]:focus,
.stm-form-col select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.stm-form-col input[type="number"] {
    width: 100px;
    text-align: center;
    font-weight: 700;
    color: #f59e0b;
}

.stm-unit {
    margin-left: 8px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.stm-form-col input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f59e0b;
}

.stm-form-col label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    text-transform: none;
    font-weight: 600;
    cursor: pointer;
}

/* Color Picker Styles - Enhanced */
.stm-color-field {
    width: 120px !important;
    height: 45px !important;
    border-radius: 8px !important;
    border: 3px solid #e5e7eb !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.stm-color-field:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
}

.wp-picker-container {
    display: inline-block;
}

.wp-picker-container .wp-color-result {
    height: 45px !important;
    border-radius: 8px !important;
    border: 3px solid #e5e7eb !important;
    box-shadow: none !important;
}

.wp-picker-container .wp-color-result:hover {
    border-color: #f59e0b !important;
}

/* Export/Import Section - Enhanced */
.stm-export-import-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stm-export-import-buttons .stm-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stm-export-import-buttons .stm-btn span {
    font-size: 20px;
}

.stm-import-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stm-import-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #059669;
    color: #065f46;
}

.stm-import-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #dc2626;
    color: #991b1b;
}

.stm-import-message p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stm-import-message.success p::before {
    content: '✓';
    background: #059669;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.stm-import-message.error p::before {
    content: '✕';
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Settings Footer - Enhanced */
.stm-settings-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.stm-btn-large {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #ffffff;
    color: #f59e0b;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stm-btn-large:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.stm-settings-message {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stm-settings-message.success {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.stm-settings-message.success::before {
    content: '✓';
    background: #059669;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.stm-settings-message.error {
    background: #ffffff;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.stm-settings-message.error::before {
    content: '✕';
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Settings Modal Header Enhancement */
#stm-modal-body h2 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    margin: -30px -30px 25px -30px;
    padding: 25px 30px;
    border-radius: 8px 8px 0 0;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

#stm-modal-body h2::before {
    content: '⚙';
    font-size: 28px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for settings */
@media (max-width: 768px) {
    .stm-card-style-grid {
        grid-template-columns: 1fr;
    }

    .stm-form-row {
        flex-direction: column;
    }

    .stm-form-col {
        min-width: 100%;
    }

    .stm-export-import-buttons {
        flex-direction: column;
    }

    .stm-export-import-buttons .stm-btn {
        width: 100%;
        min-width: 100%;
    }

    .stm-settings-footer {
        flex-direction: column;
    }

    .stm-btn-large {
        width: 100%;
    }
}

/* --- Portfolio/CV Modal (2-Column Layout) --- */
.stm-portfolio-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.stm-portfolio-left,
.stm-portfolio-right {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.stm-portfolio-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f59e0b;
}

.stm-portfolio-section-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stm-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Details Content */
.stm-details-content {
    line-height: 1.8;
    font-size: 15px;
    color: #374151;
    min-height: 200px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stm-details-content.stm-editing {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.stm-details-content p {
    margin-bottom: 15px;
}

.stm-details-content:focus {
    outline: none;
}

/* Portfolio Tabs Navigation */
.stm-portfolio-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.stm-portfolio-tab-link {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.stm-portfolio-tab-link:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: translateX(5px);
}

.stm-portfolio-tab-link.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stm-portfolio-tab-delete {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stm-portfolio-tab-delete:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.stm-portfolio-tab-link:not(.active) .stm-portfolio-tab-delete {
    background: #fee2e2;
    color: #ef4444;
}

/* Portfolio Tab Content */
.stm-portfolio-tabs-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    min-height: 250px;
    border: 2px solid #e5e7eb;
}

.stm-portfolio-tab-pane {
    display: none;
    line-height: 1.8;
    font-size: 14px;
    color: #374151;
}

.stm-portfolio-tab-pane.active {
    display: block;
}

.stm-portfolio-tab-pane.stm-editing {
    border: 2px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.stm-portfolio-tab-pane:focus {
    outline: none;
}

.stm-empty-tab {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Portfolio Edit Controls */
.stm-portfolio-edit-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.stm-portfolio-message {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 6px;
}

.stm-portfolio-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #059669;
}

.stm-portfolio-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

/* Responsive Portfolio Modal */
@media (max-width: 968px) {
    .stm-portfolio-container {
        grid-template-columns: 1fr;
    }

    .stm-portfolio-left {
        order: 2;
    }

    .stm-portfolio-right {
        order: 1;
    }
}

/* Wider modal for portfolio */
.stm-modal-content:has(.stm-portfolio-container) {
    max-width: 1000px;
}