/* Table Container */
.psn-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
    width: 100%;
}

.psn-table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    padding: 15px 20px;
}

.psn-table-header.psn-orders-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.psn-table-header.psn-deposits-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.psn-table-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
}

.psn-table-scroll {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.psn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.psn-table thead {
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.psn-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.psn-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.psn-table tbody tr:hover {
    background-color: #f9f9f9;
}

.psn-table tbody tr.psn-new-row {
    animation: highlightRow 1s ease-out;
}

@keyframes highlightRow {
    0% {
        background-color: #fff3cd;
    }
    100% {
        background-color: transparent;
    }
}

.psn-table tbody td {
    padding: 12px 15px;
    color: #555;
}

.psn-table tbody td strong {
    color: #333;
}

.psn-amount {
    color: #28a745;
    font-weight: 600;
}

.psn-time {
    color: #999;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .psn-table {
        font-size: 13px;
    }
    
    .psn-table thead th,
    .psn-table tbody td {
        padding: 10px 12px;
    }
    
    .psn-table-header h3 {
        font-size: 16px;
    }
}

/* Loading animation */
.psn-table tbody tr.psn-loading {
    opacity: 0.5;
}

/* Scrollbar styling */
.psn-table-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.psn-table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.psn-table-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.psn-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   POPUP NOTIFICATION STYLES
   ======================================== */

#psn-popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 350px;
    pointer-events: none;
}

.psn-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid #e0e0e0;
    position: relative;
}

.psn-popup.psn-popup-show {
    transform: translateX(0);
}

.psn-popup.psn-popup-hide {
    transform: translateX(120%);
}

.psn-popup-content {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    gap: 12px;
}

.psn-popup-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.psn-popup-icon.psn-icon-order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.psn-popup-icon.psn-icon-deposit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.psn-popup-info {
    flex: 1;
    min-width: 0;
}

.psn-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.psn-popup-message {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.psn-popup-time {
    font-size: 11px;
    color: #999;
}

.psn-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.psn-popup-close:hover {
    background: rgba(0,0,0,0.2);
    color: #333;
}

/* Progress bar animation */
.psn-popup-progress {
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 100%;
    transform-origin: left;
}

.psn-popup.psn-popup-deposit .psn-popup-progress {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

@keyframes progressShrink {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive popup */
@media (max-width: 480px) {
    #psn-popup-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .psn-popup-content {
        padding: 12px;
    }
    
    .psn-popup-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .psn-popup-title {
        font-size: 13px;
    }
    
    .psn-popup-message {
        font-size: 12px;
    }
}
