/* Dashboard Styles - WP Travel Chatbot */

/* Modal Styles */
.wptc-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.wptc-modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wptc-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wptc-close-modal:hover,
.wptc-close-modal:focus {
    color: #fff;
}

.wptc-modal-body {
    padding: 20px;
    color: #fff;
    max-height: 70vh;
    overflow-y: auto;
}

.wptc-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

.wptc-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Styles */
.wptc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: notificationSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 500px;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wptc-notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 4px solid #155724;
}

.wptc-notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-left: 4px solid #721c24;
}

.wptc-notification-info {
    background: linear-gradient(135deg, #007cba, #0ea5e9);
    border-left: 4px solid #004085;
}

.wptc-notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wptc-notification-close:hover {
    opacity: 1;
}

/* Trip Card Animations */
.wptc-trip-card {
    transition: all 0.3s ease;
}

.wptc-trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Button States */
.wptc-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.wptc-action-btn:disabled:hover {
    transform: none;
}

/* Dark Theme Support */
[data-theme="dark"] .wptc-modal-content {
    background-color: #2a2a2a;
    border: 1px solid #444;
}

[data-theme="dark"] .wptc-modal-body {
    color: #e0e0e0;
}

[data-theme="dark"] .wptc-loading {
    color: #aaa;
}

/* Light Theme Support */
[data-theme="light"] .wptc-modal-content {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

[data-theme="light"] .wptc-modal-body {
    color: #333;
}

[data-theme="light"] .wptc-close-modal {
    color: #666;
}

[data-theme="light"] .wptc-close-modal:hover {
    color: #333;
}

[data-theme="light"] .wptc-loading {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wptc-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .wptc-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .wptc-modal-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wptc-modal-content {
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .wptc-close-modal {
        font-size: 24px;
        padding: 10px 15px;
    }
}