/* Neo-Pop Dashboard Posts Styles */

.neo-pop-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.neo-pop-post-item {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.neo-pop-post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.neo-pop-post-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.neo-pop-post-details {
    flex: 1;
    min-width: 0;
    /* Prevent text overflow issues */
}

.neo-pop-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neo-pop-post-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 8px;
    align-items: center;
}

.neo-pop-post-type {
    color: #64ffda;
    /* Cyan accent */
    font-weight: 500;
}

.neo-pop-post-actions {
    display: flex;
    gap: 10px;
}

.neo-pop-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    color: #fff;
}

.neo-pop-action-btn:hover {
    transform: scale(1.1);
}

.neo-pop-action-btn.edit-post-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    /* Cyan tint */
    color: #64ffda;
}

.neo-pop-action-btn.delete-post-btn:hover {
    background: rgba(255, 99, 99, 0.2);
    /* Red tint */
    color: #ff6363;
}

/* Loading State for Buttons */
.neo-pop-action-btn.loading {
    opacity: 0.7;
    cursor: wait;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.7;
    }
}

/* Empty State Styling (if not already handled globally) */
.neo-pop-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.neo-pop-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.neo-pop-empty-state h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.neo-pop-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Coming Soon Badge */
.neo-pop-coming-soon {
    display: inline-block;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Modal Styles for Delete Confirmation */
.neo-pop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.neo-pop-modal.active {
    display: flex;
}

.neo-pop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.neo-pop-modal-container {
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neo-pop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.neo-pop-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}

.neo-pop-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s;
}

.neo-pop-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.neo-pop-modal-body {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.neo-pop-modal-body p {
    margin: 0;
}

.neo-pop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.neo-pop-text-muted {
    color: rgba(255, 255, 255, 0.5);
}

.neo-pop-btn-danger {
    background: #ff4757;
    color: white;
    border: none;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    font-size: 0.9rem;
}

.neo-pop-btn-danger:hover {
    background: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.neo-pop-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    font-size: 0.9rem;
}

.neo-pop-btn-secondary:hover {
    background: #eee;
    border-color: #ccc;
}

.neo-pop-btn-success {
    background: #00D4AA;
    color: #1a1a2e;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    font-size: 0.9rem;
}

.neo-pop-btn-success:hover {
    background: #00c99b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Product Edit Modal Styles */
.product-edit-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.product-edit-modal.active {
    display: flex;
}

.product-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.product-edit-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s ease-out;
}

.product-edit-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.product-edit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.product-edit-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.product-edit-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    color: #1a1a2e;
}

.product-edit-badge {
    background: #fff7ed;
    color: #ea580c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-edit-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.product-edit-readonly-section {
    margin-bottom: 30px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.product-edit-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-edit-readonly-items {
    display: grid;
    gap: 12px;
}

.product-edit-readonly-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.readonly-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readonly-value {
    font-size: 14px;
    color: #333;
    word-break: break-word;
}

.readonly-badge {
    display: inline-block;
    background: #e5f3ff;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.product-edit-editable-section {
    margin-bottom: 20px;
}

.product-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #ff6b6b;
}

.product-input {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.product-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.product-input:disabled,
.product-input[readonly] {
    background-color: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
    color: #666;
}

.product-input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.product-input-with-currency .product-input {
    flex: 1;
    padding-right: 50px;
}

.currency-addon {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    pointer-events: none;
}

.product-edit-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
}

.product-edit-cancel,
.product-edit-submit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.product-edit-cancel {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.product-edit-cancel:hover {
    background: #eee;
    border-color: #ccc;
}

.product-edit-submit {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.product-edit-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.product-edit-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-error-msg {
    padding: 12px 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.product-success-msg {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

/* Scrollbar styling for modal body */
.product-edit-body::-webkit-scrollbar {
    width: 6px;
}

.product-edit-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.product-edit-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.product-edit-body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Responsive */
@media (max-width: 600px) {
    .product-edit-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .product-edit-header {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .product-edit-title {
        font-size: 16px;
    }

    .product-edit-close {
        position: static;
        margin-left: auto;
    }

    .product-edit-footer {
        flex-direction: column;
    }

    .product-edit-cancel,
    .product-edit-submit {
        width: 100%;
    }
}