/* Document Payment System Styles */

/* AI Chat Enhancement */
#ai-chat-window {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Payment Form Styles */
.payment-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.payment-form h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.payment-form input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.payment-form button {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.payment-form button:hover {
    background: #218838;
}

.payment-form button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Status Messages */
.status-pending {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #2d3436;
}

.status-completed {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.status-failed {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Timer Styles */
.payment-timer {
    background: rgba(0,0,0,0.1);
    padding: 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-top: 10px;
}

.timer-expired {
    color: #d63031;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Admin Styles */
.twamke-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

/* Payment Status Pills */
.payment-status {
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-completed {
    background: #28a745;
}

.status-failed {
    background: #dc3545;
}

.status-expired {
    background: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ai-chat-window {
        width: 95vw;
        height: 70vh;
        right: 2.5vw;
        bottom: 80px;
    }
    
    #ai-chat-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 20px;
        bottom: 20px;
    }
    
    .twamke-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-card {
        min-width: auto;
    }
}

/* Animation for new messages */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: slideInUp 0.3s ease-out;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success animations */
.success-bounce {
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}