/* Styles for the folders list */
.folders-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.folder-item {
    margin-bottom: 20px;
}

.folder-link {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    display: block;
}

.folder-link:hover {
    text-decoration: underline;
}

/* Separator line between folders */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/* Styles for the create folder button */
#new-folder-btn {
    background-color: #0073aa;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#new-folder-btn:hover {
    background-color: #005177;
}

/* Styles for centered popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

/* ===== FOLDER DETAILS PAGE - TWO-COLUMN LAYOUT ===== */

/* Main container */
.folder-details-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
}

/* Container for the two side-by-side boxes */
.folder-header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Left box: folder information */
.folder-info-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Folder title */
.folder-info-box h1 {
    color: #2c3e50 !important;
    margin: 0 !important;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Folder ID */
.folder-id {
    color: #666;
    font-size: 13px;
    margin: -10px 0 0 0 !important;
    font-style: italic;
}

/* Compact buttons */
.folder-actions {
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.folder-actions button {
    margin: 0;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.folder-actions button:hover {
    background: #005177;
    transform: translateY(-1px);
}

.folder-actions button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   DASHBOARD ACTIVITY - MEDIA ORGANIZER BUTTON
   ========================================= */

.folderra-activity-danger-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    background: #d63638;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #d63638;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.folderra-activity-danger-btn:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    color: #ffffff;
    transform: translateY(-1px);
}

.folderra-activity-danger-btn:focus {
    outline: 2px solid #b32d2e;
    outline-offset: 2px;
}

/* Pages section */
.folder-pages-section {
    flex: 1;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.folder-pages-section h2 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* ===== FOLDER MANAGEMENT ===== */

/* Folders container */
.folders-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Styles for HORIZONTAL COMPACT folders */
.folder-block {
    border: 1px solid #ccc;
    padding: 12px 15px;
    background: #fff;
    border-radius: 5px;
    cursor: move;
    position: relative;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
    width: 400px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.folder-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Drag handle on the LEFT */
.folder-drag-handle {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #666;
    cursor: move;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.folder-block:hover .folder-drag-handle {
    opacity: 1;
    color: #0073aa;
}

/* Folder content in the CENTER */
.folder-content {
    margin-left: 30px;
    margin-right: 15px;
    flex-grow: 1;
}

/* More compact title */
.folder-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

/* More compact inline details */
.folder-details {
    color: #666;
    font-size: 11px;
    margin: 0;
    line-height: 1.3;
}

.folder-pages-count {
    color: #0073aa;
    font-size: 11px;
    margin: 2px 0 0 0;
}

.folder-created-date {
    white-space: nowrap;
}

/* Button on the RIGHT */
.folder-action-button {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.folder-action-button:hover {
    background: #005177;
    color: #fff;
}

/* ===== FOLDER DRAG & DROP ===== */

#folders-sortable {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sortable-folder.ui-sortable-helper {
    transform: rotate(2deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.sortable-folder.ui-sortable-placeholder {
    background-color: #f8f9fa !important;
    border: 2px dashed #0073aa !important;
    visibility: visible !important;
}

/* Placeholder for folder drag */
.ui-sortable-placeholder {
    background: #f8f9fa !important;
    border: 2px dashed #0073aa !important;
    visibility: visible !important;
    border-radius: 5px;
    height: 80px !important;
    width: 400px !important;
}

/* ===== CONTENT MANAGEMENT - COMPACT ===== */

/* Content container with increased gap */
.pages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    min-height: 200px;
}

/* Content boxes with slightly increased vertical padding */
.content-block {
    border: none;
    padding: 14px 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 80%;
    gap: 12px;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
    transition: all 0.2s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.content-block:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Adaptive title */
.content-title {
    flex-grow: 1;
    text-align: left;
    font-size: 15px;
    min-width: 0;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.content-type-badge {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: normal;
    border: 1px solid #dee2e6;
}

.content-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.content-actions i {
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 3px;
}

.content-actions i:hover {
    color: #0073aa;
    background: #f8f9fa;
}

.content-drag {
    cursor: move;
    font-size: 18px;
    margin-right: 12px;
    color: #6c757d;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.content-drag:hover {
    color: #0073aa;
}

/* Compact page count message */
.page-count-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 15px;
    border-radius: 6px;
    margin: 0;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-count-message p {
    margin: 0 !important;
    color: #0c5460 !important;
    font-size: 13px !important;
    font-weight: 500;
}

/* ===== LOADING ANIMATIONS ===== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons with loading state */
.button-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.button-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* ===== PAGE RESPONSIVE DESIGN ===== */

/* Desktop version - visible icons */
.content-actions {
    display: flex;
    gap: 8px;
}

.content-actions-menu {
    display: none;
    position: relative;
    flex-shrink: 0;
}

/* Hamburger menu */
.content-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: #0073aa;
    flex-shrink: 0;
}

.content-menu-toggle:hover {
    color: #005177;
}

/* Dropdown menu */
.content-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 140px;
}

.content-dropdown-menu.show {
    display: block;
}

.content-dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
    font-size: 13px;
}

.content-dropdown-item:hover {
    background: #f8f9fa;
    color: #0073aa;
}

.content-dropdown-item:last-child {
    border-bottom: none;
}

.content-dropdown-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Styles for folder edit icon */
.folder-edit-icon {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.folder-edit-icon:hover {
    opacity: 1;
    color: #005177 !important;
    transform: scale(1.1);
}

/* Styles for folder title when editable */
.folder-title {
    display: inline-block;
    margin: 0 !important;
}

/* Ensure full visibility */
#folder-pages {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== DRAG & DROP PLACEHOLDER STYLES ===== */
.content-placeholder {
    background-color: #f8f9fa !important;
    border: 2px dashed #0073aa !important;
    visibility: visible !important;
    height: 60px !important;
    margin: 5px 0;
    border-radius: 6px;
}

.content-block.ui-sortable-helper {
    transform: rotate(2deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.content-block.ui-sortable-placeholder {
    visibility: visible !important;
    background: #f8f9fa !important;
}

/* Smart Folder Navigation Styles */
.smart-folder-navigation {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.smart-folder-navigation h2 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 18px;
}

.smart-folder-navigation nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.smart-folder-navigation nav a {
    padding: 8px 15px;
    background: #ffffff;
    color: #0073aa;
    text-decoration: none;
    border: 1px solid #0073aa;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.smart-folder-navigation nav a:hover {
    background: #0073aa;
    color: #ffffff;
}

/* ===== META BOX STYLES ===== */
#wpsmartfolder_meta_box .inside {
    margin: 0;
    padding: 0;
}

#wpsmartfolder_meta_box select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wpsmartfolder_meta_box .button {
    margin-top: 8px;
}

/* Improve option appearance */
#wpsmartfolder_meta_box option {
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
}

#wpsmartfolder_meta_box option:last-child {
    border-bottom: none;
}

/* ===== NEW FOLDER PAGE ENHANCEMENTS ===== */

/* Grid for templates in 3 columns */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Improved styles for template cards */
.template-card {
    transition: all 0.3s ease;
    min-height: 140px;
    position: relative;
    border-radius: 8px;
    padding: 25px;
    background: white;
    cursor: pointer;
    border: 2px solid;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Fixed PRO message */
#pro-version-message {
    position: relative;
    z-index: 10;
}

/* Navigation styles */
.wpsmartfolder-navigation { 
    margin: 20px 0; 
    padding: 15px; 
    background: #f8f9fa; 
    border-radius: 5px; 
}

.wpsmartfolder-navigation h2 {
    margin: 0 0 15px 0; 
    color: #0073aa; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 18px; 
    font-weight: 600;
}

.wpsmartfolder-navigation nav {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

.wpsmartfolder-navigation a {
    padding: 8px 15px; 
    background: #ffffff; 
    color: #0073aa; 
    text-decoration: none; 
    border: 1px solid #0073aa; 
    border-radius: 3px;
}

.wpsmartfolder-navigation a:hover {
    background: #0073aa; 
    color: #ffffff;
}

/* Folder block styles */
.folder-block { 
    background: #fff; 
    padding: 15px; 
    margin: 10px 0; 
    border-radius: 5px; 
    border-left: 4px solid #0073aa; 
}

/* =========================================
   PRO TEMPLATES – COMING SOON (NEW FOLDER)
   ========================================= */

.pro-template-card.coming-soon {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.pro-template-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

/* Badge container */
.template-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

/* PRO badge */
.template-badges .pro-badge {
    background: #666;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

/* Coming Soon badge */
.template-badges .coming-soon-badge {
    background: #f0ad4e;
    color: #1d2327;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Disable interactions */
.pro-template-card.coming-soon * {
    pointer-events: none;
}


/* ===== PAGINATION STYLES (UNIFORM FOR ALL PAGES) ===== */

/* Main pagination container */
.wpsf-pagination {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    border-top: 2px solid #0073aa;
}

/* Inner container */
.wpsf-pagination > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Item information */
.wpsf-pagination .pagination-info {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.wpsf-pagination .pagination-info strong {
    color: #0073aa;
}

/* Navigation buttons */
.wpsf-pagination .button {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 32px;
    text-align: center;
    border: 1px solid #ddd;
    background: white;
    color: #0073aa;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wpsf-pagination .button:hover {
    background: #f0f0f0;
    border-color: #0073aa;
    color: #005177;
}

.wpsf-pagination .button.button-primary {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    cursor: default;
}

.wpsf-pagination .button.button-primary:hover {
    background: #0073aa;
    color: white;
}

/* Previous/Next buttons */
.wpsf-pagination .button[style*="min-width: 80px"] {
    min-width: 80px;
}

/* ===== FILTER CONTROLS STYLES ===== */

/* Filter container */
.wpsf-filters {
    margin: 0 0 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* Filter form */
.wpsf-filters form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Form elements */
.wpsf-filters > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Labels */
.wpsf-filters label {
    margin: 0;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

/* Select and input */
.wpsf-filters select,
.wpsf-filters input[type="text"] {
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-size: 13px;
    min-height: 30px;
    background: white;
}

.wpsf-filters select {
    min-width: 120px;
}

.wpsf-filters input[type="text"] {
    min-width: 200px;
}

/* Filter buttons */
.wpsf-filters .button {
    padding: 5px 15px;
    font-size: 13px;
    height: 30px;
    line-height: 1;
    white-space: nowrap;
}

/* ===== FOLDER DETAILS SPECIFIC STYLES ===== */

/* Improved content count box */
.folder-count-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e7f3ff;
    border-radius: 6px;
    border: 1px solid #b3d7ff;
    min-width: 160px;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.folder-count-icon {
    color: #0073aa;
    font-size: 24px;
}

.folder-count-info {
    display: flex;
    flex-direction: column;
}

.folder-count-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.folder-count-number {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

/* Container for folder info in folder-details */
.folder-info-items-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

/* Each info item */
.folder-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.folder-info-item i {
    color: #0073aa;
    font-size: 16px;
}

.folder-info-item span {
    font-size: 13px;
    color: #333;
}

.folder-info-item strong {
    margin-right: 4px;
    color: #555;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    .folder-header-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .folder-info-box,
    .folder-notification-box {
        padding: 15px;
    }
    
    .content-block {
        width: 95% !important;
        padding: 12px 12px !important;
        flex-wrap: nowrap;
    }
    
    .content-title {
        flex-shrink: 1;
        min-width: 0;
        font-size: 14px;
    }
    
    .content-type-badge {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    /* Hide single icons, show hamburger menu */
    .content-actions {
        display: none;
    }
    
    .content-actions-menu {
        display: block;
    }
    
    .folder-actions button {
        min-width: 110px;
        font-size: 12px;
        padding: 7px 12px;
    }
    
    .folder-pages-section {
        padding: 20px 15px;
    }
    
    /* Pagination responsive */
    .wpsf-pagination > div {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .wpsf-pagination .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    /* Filter responsive */
    .wpsf-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpsf-filters > div {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wpsf-filters select,
    .wpsf-filters input[type="text"] {
        width: 100%;
        min-width: unset;
    }
    
    /* Folder info items responsive */
    .folder-info-items-container {
        padding: 10px;
        gap: 10px;
    }
    
    .folder-info-item {
        flex: 1 0 calc(50% - 10px);
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .folder-count-box {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .content-block {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .content-title {
        flex-basis: 100%;
        margin-bottom: 4px;
        font-size: 14px;
    }
    
    .content-drag {
        order: -1;
        margin-right: 8px;
    }
    
    .content-actions-menu {
        margin-left: auto;
    }
    
    .folder-actions {
        flex-direction: column;
    }
    
    .folder-actions button {
        min-width: auto;
        width: 100%;
    }
    
    .folder-info-item {
        flex: 1 0 100%;
    }
    
    .wpsf-pagination .button {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 28px;
    }
    
    .wpsf-pagination .button[style*="min-width: 80px"] {
        min-width: 70px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .content-block {
        width: 90% !important;
    }
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb-container {
    margin: 0 0 20px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.breadcrumb-container h2 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.breadcrumb-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-separator {
    color: #666;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Focus styles for accessibility */
.button:focus,
select:focus,
input[type="text"]:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .folder-actions,
    .wpsf-filters,
    .wpsf-pagination,
    .content-actions,
    .content-actions-menu {
        display: none !important;
    }
    
    .folder-block,
    .content-block {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */

/* Main settings container */
.wpsmartfolder-settings-container,
.fold82sm-settings-container {
    max-width: 800px;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    border-radius: 4px;
    overflow: hidden;
}

/* Settings header */
.wpsmartfolder-settings-header,
.fold82sm-settings-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e2e4e7;
}

.wpsmartfolder-settings-header h1,
.fold82sm-settings-header h1 {
    margin: 0;
    color: #23282d;
    font-size: 23px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsmartfolder-settings-header h1 .dashicons,
.fold82sm-settings-header h1 .dashicons {
    color: #0073aa;
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.wpsmartfolder-settings-header p,
.fold82sm-settings-header p {
    margin: 10px 0 0 0;
    color: #646970;
    font-size: 14px;
}

/* Settings form */
.wpsmartfolder-settings-form,
.fold82sm-settings-form {
    padding: 20px;
}

/* Role table */
.wpsmartfolder-roles-table,
.fold82sm-roles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wpsmartfolder-roles-table th,
.fold82sm-roles-table th {
    text-align: left;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #e2e4e7;
    font-weight: 600;
    color: #23282d;
}

.wpsmartfolder-roles-table td,
.fold82sm-roles-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.wpsmartfolder-roles-table tr:hover,
.fold82sm-roles-table tr:hover {
    background: #fafafa;
}

/* Role checkbox */
.wpsmartfolder-role-checkbox,
.fold82sm-role-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsmartfolder-role-checkbox input[type="checkbox"],
.fold82sm-role-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.wpsmartfolder-role-checkbox label,
.fold82sm-role-checkbox label {
    font-size: 14px;
    font-weight: 500;
    color: #23282d;
    cursor: pointer;
}

.wpsmartfolder-role-default,
.fold82sm-role-default {
    display: inline-block;
    background: #e7f3ff;
    color: #0073aa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Save button */
.wpsmartfolder-save-button,
.fold82sm-save-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wpsmartfolder-save-button:hover,
.fold82sm-save-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.wpsmartfolder-save-button:active,
.fold82sm-save-button:active {
    transform: translateY(0);
}

/* Info panel */
.wpsmartfolder-info-panel,
.fold82sm-info-panel {
    background: #f0f7ff;
    border: 1px solid #c3d9f2;
    border-radius: 4px;
    padding: 20px;
    margin-top: 30px;
}

.wpsmartfolder-info-panel h3,
.fold82sm-info-panel h3 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsmartfolder-info-panel h3 .dashicons,
.fold82sm-info-panel h3 .dashicons {
    font-size: 18px;
}

.wpsmartfolder-info-panel ul,
.fold82sm-info-panel ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.wpsmartfolder-info-panel li,
.fold82sm-info-panel li {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    color: #2c3338;
    font-size: 13px;
    line-height: 1.5;
}

.wpsmartfolder-info-panel li::before,
.fold82sm-info-panel li::before {
    content: "•";
    color: #0073aa;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.wpsmartfolder-info-panel strong,
.fold82sm-info-panel strong {
    color: #23282d;
    font-weight: 600;
}

.wpsmartfolder-info-note,
.fold82sm-info-note {
    background: #fff8e5;
    border: 1px solid #ffd567;
    border-radius: 3px;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 12px;
    color: #5d4a00;
}

.wpsmartfolder-info-note strong,
.fold82sm-info-note strong {
    color: #8a6d00;
}

/* Role status indicators */
.wpsmartfolder-role-status,
.fold82sm-role-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.wpsmartfolder-role-enabled,
.fold82sm-role-enabled {
    background: #d4edda;
    color: #155724;
}

.wpsmartfolder-role-disabled,
.fold82sm-role-disabled {
    background: #f8d7da;
    color: #721c24;
}

.wpsmartfolder-role-always,
.fold82sm-role-always {
    background: #cce5ff;
    color: #004085;
}

/* Success/Error messages */
.wpsmartfolder-message,
.fold82sm-message {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
    font-size: 14px;
}

.wpsmartfolder-message-success,
.fold82sm-message-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.wpsmartfolder-message-error,
.fold82sm-message-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* Role descriptions */
.wpsmartfolder-role-desc,
.fold82sm-role-desc {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
    line-height: 1.4;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .wpsmartfolder-roles-table,
    .fold82sm-roles-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .wpsmartfolder-settings-container,
    .fold82sm-settings-container {
        margin: 10px;
        border-radius: 0;
    }

    .wpsmartfolder-role-checkbox,
    .fold82sm-role-checkbox {
        flex-wrap: wrap;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wpsmartfolder-settings-container,
    .fold82sm-settings-container {
        background: #1d2327;
        border-color: #3c434a;
    }

    .wpsmartfolder-settings-header,
    .fold82sm-settings-header {
        background: #2c3338;
        border-color: #3c434a;
    }

    .wpsmartfolder-settings-header h1,
    .fold82sm-settings-header h1 {
        color: #f0f0f1;
    }

    .wpsmartfolder-roles-table th,
    .fold82sm-roles-table th {
        background: #2c3338;
        border-color: #3c434a;
        color: #f0f0f1;
    }

    .wpsmartfolder-roles-table td,
    .fold82sm-roles-table td {
        border-color: #3c434a;
    }

    .wpsmartfolder-roles-table tr:hover,
    .fold82sm-roles-table tr:hover {
        background: #32373c;
    }

    .wpsmartfolder-role-checkbox label,
    .fold82sm-role-checkbox label {
        color: #f0f0f1;
    }

    .wpsmartfolder-info-panel,
    .fold82sm-info-panel {
        background: #2c3338;
        border-color: #3c434a;
    }

    .wpsmartfolder-info-panel li,
    .fold82sm-info-panel li {
        color: #dcdcde;
    }

    .wpsmartfolder-info-panel strong,
    .fold82sm-info-panel strong {
        color: #f0f0f1;
    }
}

/* Animation for role changes */
@keyframes wpsmartfolder-role-change {
    0% { background-color: transparent; }
    50% { background-color: rgba(0, 115, 170, 0.1); }
    100% { background-color: transparent; }
}

.wpsmartfolder-role-updated,
.fold82sm-role-updated {
    animation: wpsmartfolder-role-change 1s ease;
}

/* Section headers */
.wpsmartfolder-section-header,
.fold82sm-section-header {
    padding: 15px 0;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #f0f0f0;
    font-size: 18px;
    color: #23282d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsmartfolder-section-header .dashicons,
.fold82sm-section-header .dashicons {
    color: #0073aa;
}

/* Role permission levels */
.wpsmartfolder-permission-level,
.fold82sm-permission-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpsmartfolder-permission-full,
.fold82sm-permission-full {
    background: #d4edda;
    color: #155724;
}

.wpsmartfolder-permission-limited,
.fold82sm-permission-limited {
    background: #fff3cd;
    color: #856404;
}

.wpsmartfolder-permission-readonly,
.fold82sm-permission-readonly {
    background: #d1ecf1;
    color: #0c5460;
}

.wpsmartfolder-permission-none,
.fold82sm-permission-none {
    background: #f8d7da;
    color: #721c24;
}

/* Role icons */
.wpsmartfolder-role-icon,
.fold82sm-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 14px;
    color: #646970;
}

.wpsmartfolder-role-admin .wpsmartfolder-role-icon,
.fold82sm-role-admin .fold82sm-role-icon {
    background: #dc3545;
    color: white;
}

.wpsmartfolder-role-editor .wpsmartfolder-role-icon,
.fold82sm-role-editor .fold82sm-role-icon {
    background: #0073aa;
    color: white;
}

.wpsmartfolder-role-author .wpsmartfolder-role-icon,
.fold82sm-role-author .fold82sm-role-icon {
    background: #28a745;
    color: white;
}

.wpsmartfolder-role-contributor .wpsmartfolder-role-icon,
.fold82sm-role-contributor .fold82sm-role-icon {
    background: #ffc107;
    color: #212529;
}

.wpsmartfolder-role-subscriber .wpsmartfolder-role-icon,
.fold82sm-role-subscriber .fold82sm-role-icon {
    background: #6c757d;
    color: white;
}


/* Hide other notices on Folderra admin pages, keep only Folderra-specific notices */
body.folderra-admin-page #wpbody-content > .notice:not(.wpsmartfolder-notice),
body.folderra-admin-page #wpbody-content > .update-nag:not(.wpsmartfolder-notice) {
    display: none !important;
}

/* ===== SETTINGS TOGGLE BOXES ===== */

.wpsmartfolder-toggle-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wpsmartfolder-toggle-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wpsmartfolder-toggle-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
}

.wpsmartfolder-toggle-header:hover {
    background: #f0f7ff;
}

.wpsmartfolder-toggle-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsmartfolder-toggle-icon {
    color: #0073aa;
    font-size: 20px;
}

.wpsmartfolder-toggle-arrow {
    color: #666;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.wpsmartfolder-toggle-arrow.open {
    transform: rotate(180deg);
    color: #0073aa;
}

.wpsmartfolder-toggle-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.wpsmartfolder-toggle-content.open {
    padding: 20px;
    max-height: 5000px;
    opacity: 1;
}

.wpsmartfolder-toggle-section.active {
    border-left: 4px solid #0073aa;
}

/* Responsive design for toggle sections */
@media (max-width: 768px) {
    .wpsmartfolder-toggle-header {
        padding: 15px;
    }
    
    .wpsmartfolder-toggle-title {
        font-size: 15px;
    }
    
    .wpsmartfolder-toggle-content.open {
        padding: 15px;
    }
}

/* ===== MEDIA WHERE USED MODAL ===== */
.fold82sm-uses-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  z-index: 100000;
}

.fold82sm-uses-modal-panel{
  position:fixed;
  top:0;
  right:0;
  width:min(520px, 92vw);
  height:100vh;
  background:#fff;
  z-index: 100001;
  box-shadow:-10px 0 40px rgba(0,0,0,0.2);
  display:flex;
  flex-direction:column;
}

.fold82sm-uses-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px;
  border-bottom:1px solid #e2e4e7;
  background:#f6f7f7;
}

.fold82sm-uses-modal-body{
  flex:1;
  overflow:auto;
}

.fold82sm-uses-modal-footer{
  border-top:1px solid #e2e4e7;
}

.fold82sm-uses-badge{
  display:inline-block;
  padding:2px 8px;
  border:1px solid #ccd0d4;
  border-radius:999px;
  font-size:12px;
  margin-left:6px;
}

.fold82sm-view-all-uses{
  margin-left:8px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}
.fold82sm-view-all-uses:hover{
  text-decoration:underline;
}

#fold82sm-media-tab-content td{
  white-space: normal;
}

/* Mini Analytics Filters */
.fold82sm-mini-analytics-filters {
  display: flex;
  gap: 6px;
  margin: 0 0 10px 0;
  flex-wrap: wrap;
}

.fold82sm-mini-analytics-filters .button.is-active {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.fold82sm-mini-analytics-filters-pages button.is-active,
.fold82sm-mini-analytics-filters-posts button.is-active {
  background: #2271b1 !important;
  border-color: #2271b1 !important;
  color: #fff !important;
}

.fold82sm-mini-analytics-filters-pages button,
.fold82sm-mini-analytics-filters-posts button {
  transition: all 0.2s ease;
}


/* ============================================
   SETTINGS SWITCH ROW
   ============================================ */
.fold82sm-setting-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.fold82sm-setting-label-group {
    flex: 1;
    min-width: 0;
}

.fold82sm-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.fold82sm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.fold82sm-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #c3c4c7;
    border-radius: 999px;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.fold82sm-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.fold82sm-switch input:checked + .fold82sm-slider {
    background: #2271b1;
}

.fold82sm-switch input:focus + .fold82sm-slider {
    box-shadow: 0 0 0 2px rgba(34,113,177,0.2);
}

.fold82sm-switch input:checked + .fold82sm-slider::before {
    transform: translateX(22px);
}
/* =========================================
   FOLDERRA MAIN PAGE COLLAPSIBLE BOXES
   ========================================= */
.fold82sm-dashboard-toggle-box {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fold82sm-dashboard-box-header {
    min-width: 0;
}

.fold82sm-dashboard-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #50575e;
    border-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
}

.fold82sm-dashboard-toggle:hover,
.fold82sm-dashboard-toggle:focus {
    color: #0073aa;
    background: #f0f7ff;
    outline: none;
    box-shadow: none;
}

.fold82sm-dashboard-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fold82sm-dashboard-toggle-box.is-collapsed {
    padding-bottom: 16px !important;
}

.fold82sm-dashboard-toggle-box.is-collapsed .fold82sm-dashboard-box-header {
    margin-bottom: 0 !important;
}

.fold82sm-dashboard-toggle-box.is-collapsed .fold82sm-dashboard-box-content {
    display: none;
}

.fold82sm-dashboard-columns {
    align-items: start;
}

.fold82sm-dashboard-column {
    min-width: 0;
}

@media (max-width: 960px) {
    .fold82sm-dashboard-columns {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   FOLDERRA WORKFLOW STATUS
   ============================================ */
.fold82sm-workflow-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 3px 10px;
    border: 1px solid var(--fold82sm-status-color, #6b7280);
    background: #fff;
    color: var(--fold82sm-status-color, #6b7280);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    vertical-align: middle;
}
.fold82sm-workflow-badge:hover,
.fold82sm-workflow-badge.is-open {
    background: color-mix(in srgb, var(--fold82sm-status-color, #6b7280) 10%, #ffffff);
}
.fold82sm-workflow-menu {
    position: absolute;
    z-index: 100000;
    width: 220px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    padding: 10px;
}
.fold82sm-workflow-menu-title {
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    margin-bottom: 8px;
}
.fold82sm-workflow-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.fold82sm-workflow-option:hover,
.fold82sm-workflow-option.is-active {
    background: #f6f7f7;
}
.fold82sm-workflow-option-icon {
    width: 18px;
    text-align: center;
}

/* Settings tabs */
.fold82sm-settings-tabs {
    margin: 0;
    padding: 12px 20px 0;
    background: #ffffff;
    border-bottom: 1px solid #c3c4c7;
}

.fold82sm-settings-tabs .nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fold82sm-settings-tabs .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}
