

.fpm-container {
    margin: 0 auto;
    padding: 20px;
   
}

.fpm-tabs {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.fpm-tab {
    padding: 15px 5px;
    background: #005a3d;
    border: 2px solid #005a3d;
  
    margin-right: 5px;
    cursor: pointer;
    border-radius: 5px;
    width: 130px;
}
.fpm-tab.active, .fpm-tab:hover {
    background: #f9f9f9;
    font-weight: bold;
    color: #005a3d;
    border: 2px solid #005a3d;
    box-shadow: none;
}

.fpm-tab-content {
    display: none;
   
  
}

.fpm-tab-content.active {
    display: block;
}


.fpm-table {
    width: 100%;
    border-collapse: collapse;
}

.fpm-table th, .fpm-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.fpm-table th {
    background: #f1f1f1;
}
.fpm-form-group {
    margin-bottom: 15px;
}

.fpm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.fpm-form-group input[type="text"],
.fpm-form-group input[type="number"],
.fpm-form-group textarea,
.fpm-form-group .wp-editor-container {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.fpm-notice {
    padding: 15px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.fpm-success {
    color: #4CAF50;
}

.fpm-error {
    color: #f44336;
}

.fpm-loading {
    color: #2196F3;
}

#fpm-image-preview img {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
}



.fpm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
   
}

.fpm-product-card {
    border: 1px solid #000;
    background-color: #fff;
    border-radius: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 28px;
}
.fpm-product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fpm-product-image {
    position: relative;
    background: #005a3d;
    text-align: center;
    height: 150px;
    overflow: hidden;
    width: 100%;
    border-radius: 5px 5px 0px 0px;
    
}

.fpm-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fpm-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.fpm-product-meta {
    padding: 15px;
    text-align: center;
}

.fpm-product-card.draft .fpm-status-badge {
    background: #9E9E9E;
}

.fpm-product-card.pending .fpm-status-badge {
    background: #FFC107;
    color: #000;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  font-size: 14px;
}

.store_header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

span#addNewProuct {
    background: #005a3d;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.fpm-container {
    padding: 14px;
}

span.store {
    background: transparent;
    font-size: 30px;
    font-weight: 700;
}

/* Modal Styles */
.fpm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.fpm-modal-container {
    background: #fff;
    border-radius: 8px;
    width: 60%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fpm-modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpm-modal-header h3 {
    margin: 0;
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    width: 90%;
    font-weight: 700;
}

span.fpm-modal-close {
    color: #0c0c0c;
    font-size: 30px;
    font-weight: 500;
    transform: rotate(45deg);
    cursor: pointer;
    user-select: none;
    border: 1px solid #0c0c0c;
    height: 30px;
    width: 30px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}
.fpm-modal-body {
    padding: 20px;
}

.fpm-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Form Styles */
.fpm-form-row {
    margin-bottom: 20px;
}

.fpm-form-group {
    margin-bottom: 15px;
    display: flex;
}

.fpm-form-group label {
    font-weight: 500;
    color: #000000;
    width: 175px;
    font-size: 20px;
    position: relative;
}

.fpm-form-group label span {
    color: #f54242;
    font-size: 20px;
}

.fpm-form-group input[type="text"], .fpm-form-group input[type="number"], .fpm-form-group textarea , .fpm-form-group select {
    padding: 10px;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    font-size: 14px;
    width: 300px;
    -webkit-border-radius: 4px !important;
    -moz-border-radius: 4px !important;
    -ms-border-radius: 4px !important;
    -o-border-radius: 4px !important;
}

.fpm-form-group textarea {
    min-height: 80px;
}

.fpm-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    width: 60%;
}

.fpm-file-upload input[type="file"] {
    display: none;
}



.fpm-image-preview {
    margin-top: 10px;
}

.fpm-image-preview img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.fpm-btn {
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    padding: 14px 32px;
}



.fpm-form-message.success {
  
    color: #3c763d;
    
}

.fpm-form-message.error {
    background-color: #f2dede;
    color: #a94442;
  
}

/* Toggle Switch Styles */
.fpm-toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fpm-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.fpm-toggle-slider {
    position: relative;
    cursor: pointer;
    width: 50px !important;
    height: 24px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.fpm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

.fpm-toggle-input:checked + .fpm-toggle-slider {
    background-color: #005a3d;
}

.fpm-toggle-input:checked + .fpm-toggle-slider:before {
    transform: translateX(26px);
}

.fpm-toggle-text {
    font-size: 14px;
    color: #555;
    min-width: 60px;
}

/* Focus state for accessibility */
.fpm-toggle-input:focus + .fpm-toggle-slider {
    box-shadow: 0 0 1px #005a3d;
}

/* Optional: Disabled state */
.fpm-toggle-input:disabled + .fpm-toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.fpm-toggle-input:disabled + .fpm-toggle-slider:before {
    background-color: #f5f5f5;
}

 


.fpm-product-title, .fpm-stock-label {
    font-size: 13px;
    color: #4D5E6F;
    margin-bottom: 4px;
    text-align: center;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    font-weight: 400;
}

.fpm-stock-label{
    color:#9d0202;
}

.fpm-product-price {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
}

.fpm-product-actions {
    display: flex;
    flex-direction: column;
 
}

.fpm-course-dropdown {
    flex-direction: column;
    display: none;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    border-top: 1px solid #ddd;
   
}
.fpm-course-dropdown span {
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    
}
.fpm-course-dropdown span:hover{
 background: #ddd;
 color: #000;
}
.fpm-product-actions {
    display: flex;
    flex-direction: column;
    background: #005a3d;
    color: #fff;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 997;
    width: 200px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.fpm-product-actions:hover .fpm-course-dropdown {
    display: flex;
}


.fpm_footer_wraper {
    position: relative;
}

span.status-icon.Publish {
  color: #005a3d;
}

span.status-icon.Draft{
  color: #ffc107;
}


/* Add this to your stylesheet */
#fpm-fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-color: rgba(255, 255, 255, 0.8);
     backdrop-filter: blur(10px);
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
   
}

.fpm-loader-content {
    text-align: center;
}

.fpm-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #005a3d;
    border-radius: 50%;
    animation: fpm-spin 1s linear infinite;
    margin: 0 auto 15px;
}

.fpm-loader-text {
    font-size: 16px;
    color: #333;
}

@keyframes fpm-spin {
    0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); }
    50% { transform: rotate(180deg); -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); }
    75% { transform: rotate(270deg); -webkit-transform: rotate(270deg); -moz-transform: rotate(270deg); -ms-transform: rotate(270deg); -o-transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}
table, td, th{
    border: 1px solid #ddd !important;
    border-collapse: collapse !important;
}

   .fpm-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}


        
        .fpm-table th, .fpm-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }
        
       .fpm-table  thead  th{
    border-bottom: #ddd !important;
  }
        
        .fpm-order-status {
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
            text-transform: capitalize;
        }
        
        .status-completed {
            background-color: #d4edda;
            color: #005a3d;
        }
        
        .status-processing {
            
            color: #004085;
        }
        
        .status-pending {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .status-failed {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        .customer-info {
            line-height: 1.4;
        }
        
        .customer-name {
            font-weight: 500;
        }
        
        .customer-email {
            font-size: 12px;
            color: #666;
        }
        
      .fpm-btn {
            display: inline-block;
            padding: 12px 16px;
            background: #005a3d;
            color: #fff;
            text-decoration: none;
            border-radius: 4px;
            font-size: 13px;
            margin-right: 5px;
        }
                
       
      .order-status-table {
        color: #ffffff;
        padding: 6px 8px;
        background: #005a3d;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
    }

    .book-actions {
    justify-content: center;
    align-items: center;
}

/* Stock status styles */
.fpm-stock-status {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.fpm-stock-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #ff4d4d; /* Red for out of stock */
}

.fpm-stock-status-text {
    font-size: 14px;
    color: #666;
}

/* Style for in stock status */
.stock-in-stock .fpm-stock-status-indicator {
    background-color: #4CAF50; /* Green for in stock */
}

[dir="rtl"] span.fpm-modal-close {
    color: #0c0c0c;
    font-size: 30px;
    font-weight: 500;
    transform: rotate(45deg);
    cursor: pointer;
    user-select: none;
    border: 1px solid #0c0c0c;
    height: 30px;
    width: 30px;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
}

/* Button loading state */
.buy-now.loading {
    position: relative;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Spinner animation */
.buy-now .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.payment-method-toggles h3 {
    font-size: 30px;
    font-weight: 700;
}


.media-router .media-menu-item {
    position: relative;
    float: left;
    border: 0;
    margin: 0;
    padding: 8px 10px 9px;
    height: 18px;
    line-height: 1.28571428;
    font-size: 14px;
    text-decoration: none;
    background: 0 0;
    cursor: pointer;
    transition: none;
    color: #fff !important;
    background-color: rgba(0,90,61,1) !important;
}

.media-router .media-menu-item:hover {
    background-color: rgba(0,90,61,0.8) !important;
    color: #fff !important;
}

.media-modal-close:hover {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    background: 0 0 !important;
    color: #646970;
    z-index: 1000;
    cursor: pointer;
    outline: 0;
    transition: color .1s ease-in-out,background .1s ease-in-out;
}
div#featured_image_preview {
    position: relative;
}

span.delete_image {
    position: absolute;
    left: 0;
    bottom: 0;
    cursor: pointer;
}

span.delete_image i {
    color: #9d0202;
    font-size: 25px;
}