/* Main Dashboard Styles */
.fpm-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fpm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.fpm-header h2 {
    color: #333;
    margin: 0;
}

/* Button Styles */
.fpm-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fpm-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fpm-primary {
    background-color: #4e73df;
    color: white;
}

.fpm-secondary {
    background-color: #858796;
    color: white;
}

.fpm-danger {
    background-color: #e74a3b;
    color: white;
}

.fpm-small {
    padding: 5px 10px;
    font-size: 14px;
}

/* Form Styles */
.fpm-form-container {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fpm-form-group {
    margin-bottom: 20px;
}

.fpm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.fpm-form-group input[type="text"],
.fpm-form-group input[type="number"],
.fpm-form-group textarea,
.fpm-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.fpm-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.fpm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.fpm-image-preview {
    margin-top: 10px;
}

.fpm-image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Products Grid */
.fpm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fpm-product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fpm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fpm-product-image {
    height: 180px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpm-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fpm-no-image {
    color: #999;
    font-size: 14px;
}

.fpm-product-details {
    padding: 15px;
}

.fpm-product-details h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 16px;
}

.fpm-product-price {
    font-weight: bold;
    color: #4e73df;
    margin-bottom: 15px;
    font-size: 18px;
}

.fpm-product-actions {
    display: flex;
    gap: 10px;
}

.fpm-no-products {
    text-align: center;
    padding: 30px;
    color: #666;
    background-color: white;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* Alerts */
.fpm-alert {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

/* Edit Modal */
.fpm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fpm-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.fpm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.fpm-modal-header h3 {
    margin: 0;
    color: #333;
}

.fpm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.fpm-modal-body {
    margin-bottom: 20px;
}

.fpm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* Login Form Styles */
.fpm-login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fpm-login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.fpm-remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fpm-remember input {
    width: auto;
}

.fpm-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.fpm-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fpm-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* User Actions */
.fpm-user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fpm-user-actions span {
    font-weight: 500;
    color: #555;
}