/**
 * Customer Session UI Styles
 * TravelTeam Agency Plugin
 * @version 1.0.0
 */

/* Customer Session Container - Fixed Position Bottom-Left */
#tt-customer-session {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Session Indicator Badge */
#tt-customer-session-indicator {
    background: linear-gradient(135deg, #0d4c96, #1e5ba8);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 76, 150, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

#tt-customer-session-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 76, 150, 0.4);
    background: linear-gradient(135deg, #1e5ba8, #2a6bb8);
}

#tt-customer-session-indicator .session-icon {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Expandable Session Panel */
#tt-customer-session-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 400px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    opacity: 0;
    border: 1px solid #e5e7eb;
}

#tt-customer-session-panel.expanded {
    max-height: 80vh;
    padding: 24px;
    transform: translateY(0);
    opacity: 1;
    overflow-y: auto;
}

#tt-customer-session-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

/* Close Button */
#tt-customer-session-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#tt-customer-session-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Session Header */
.tt-session-header {
    margin-bottom: 24px;
}

.tt-session-title {
    font-size: 24px;
    font-weight: 700;
    color: #0d4c96;
    margin: 0 0 8px 0;
}

.tt-session-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Customer Details Section */
.tt-customer-details {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
    margin-bottom: 16px;
}

.tt-detail-row {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tt-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tt-detail-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    font-size: 14px;
}

.tt-detail-value {
    color: #666;
    font-size: 14px;
    word-break: break-word;
}

/* Session Actions Footer */
.tt-session-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: white;
}

/* Button Styles */
.tt-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tt-btn-primary {
    background: #0d4c96;
    color: white;
}

.tt-btn-primary:hover {
    background: #1e5ba8;
}

.tt-btn-danger {
    background: #dc3545;
    color: white;
}

.tt-btn-danger:hover {
    background: #c82333;
}

.tt-btn-secondary {
    background: #6c757d;
    color: white;
}

.tt-btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    #tt-customer-session {
        bottom: 10px;
        left: 10px;
    }

    #tt-customer-session-indicator {
        padding: 10px 14px;
        font-size: 13px;
    }

    #tt-customer-session-panel {
        width: calc(100vw - 20px);
        left: 10px;
    }

    #tt-customer-session-content {
        padding: 20px;
    }

    .tt-session-title {
        font-size: 20px;
    }

    .tt-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .tt-detail-label {
        min-width: auto;
        font-size: 13px;
    }

    .tt-detail-value {
        font-size: 13px;
    }

    .tt-session-actions {
        flex-direction: column;
    }

    .tt-btn {
        width: 100%;
    }
}
